Termination w.r.t. Q of the following Term Rewriting System could not be shown:

Q restricted rewrite system:
The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.


QTRS
  ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.

Using Dependency Pairs [1,15] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

U111(mark(X1), X2, X3) → U111(X1, X2, X3)
PROPER(U82(X1, X2)) → U821(proper(X1), proper(X2))
ACTIVE(U82(X1, X2)) → U821(active(X1), X2)
PROPER(U71(X1, X2)) → PROPER(X1)
U911(mark(X1), X2) → U911(X1, X2)
U711(mark(X1), X2) → U711(X1, X2)
ACTIVE(U82(X1, X2)) → ACTIVE(X1)
ACTIVE(cons(X1, X2)) → CONS(active(X1), X2)
ACTIVE(isLNat(natsFrom(V1))) → ISNATURAL(V1)
PROPER(U31(X1, X2)) → PROPER(X1)
SEL(ok(X1), ok(X2)) → SEL(X1, X2)
ACTIVE(U41(tt, N)) → NATSFROM(s(N))
FST(mark(X)) → FST(X)
ACTIVE(afterNth(N, XS)) → ISNATURAL(N)
SND(ok(X)) → SND(X)
ACTIVE(U21(X1, X2)) → U211(active(X1), X2)
ACTIVE(sel(N, XS)) → AND(isNatural(N), isLNat(XS))
U311(mark(X1), X2) → U311(X1, X2)
ISPLNAT(ok(X)) → ISPLNAT(X)
ACTIVE(U101(X1, X2, X3)) → U1011(active(X1), X2, X3)
SND(mark(X)) → SND(X)
PROPER(splitAt(X1, X2)) → SPLITAT(proper(X1), proper(X2))
ACTIVE(isLNat(take(V1, V2))) → ISNATURAL(V1)
PROPER(natsFrom(X)) → NATSFROM(proper(X))
ACTIVE(tail(X)) → ACTIVE(X)
U711(ok(X1), ok(X2)) → U711(X1, X2)
PROPER(U81(X1, X2, X3, X4)) → U811(proper(X1), proper(X2), proper(X3), proper(X4))
S(ok(X)) → S(X)
CONS(mark(X1), X2) → CONS(X1, X2)
ACTIVE(U11(tt, N, XS)) → SPLITAT(N, XS)
ACTIVE(isPLNat(pair(V1, V2))) → AND(isLNat(V1), isLNat(V2))
ACTIVE(U71(X1, X2)) → U711(active(X1), X2)
ACTIVE(U81(X1, X2, X3, X4)) → U811(active(X1), X2, X3, X4)
ACTIVE(afterNth(N, XS)) → ISLNAT(XS)
PAIR(mark(X1), X2) → PAIR(X1, X2)
ACTIVE(sel(X1, X2)) → ACTIVE(X2)
PROPER(and(X1, X2)) → AND(proper(X1), proper(X2))
PROPER(U82(X1, X2)) → PROPER(X1)
ACTIVE(isPLNat(pair(V1, V2))) → ISLNAT(V2)
SPLITAT(mark(X1), X2) → SPLITAT(X1, X2)
PROPER(U101(X1, X2, X3)) → PROPER(X2)
FST(ok(X)) → FST(X)
PROPER(cons(X1, X2)) → PROPER(X1)
U821(mark(X1), X2) → U821(X1, X2)
AFTERNTH(ok(X1), ok(X2)) → AFTERNTH(X1, X2)
ACTIVE(splitAt(0, XS)) → ISLNAT(XS)
ACTIVE(afterNth(X1, X2)) → AFTERNTH(X1, active(X2))
U311(ok(X1), ok(X2)) → U311(X1, X2)
ACTIVE(splitAt(s(N), cons(X, XS))) → AND(isNatural(X), isLNat(XS))
ACTIVE(natsFrom(N)) → ISNATURAL(N)
PROPER(isNatural(X)) → ISNATURAL(proper(X))
ACTIVE(U11(X1, X2, X3)) → U111(active(X1), X2, X3)
S(mark(X)) → S(X)
PROPER(U41(X1, X2)) → PROPER(X2)
PROPER(cons(X1, X2)) → CONS(proper(X1), proper(X2))
PROPER(and(X1, X2)) → PROPER(X1)
ACTIVE(snd(X)) → SND(active(X))
PROPER(pair(X1, X2)) → PROPER(X1)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X1)
ACTIVE(U11(X1, X2, X3)) → ACTIVE(X1)
PROPER(natsFrom(X)) → PROPER(X)
ACTIVE(U101(tt, N, XS)) → SPLITAT(N, XS)
PROPER(isPLNat(X)) → PROPER(X)
ISNATURAL(ok(X)) → ISNATURAL(X)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X1)
ACTIVE(head(X)) → ACTIVE(X)
ACTIVE(take(N, XS)) → U1011(and(isNatural(N), isLNat(XS)), N, XS)
ACTIVE(sel(N, XS)) → ISNATURAL(N)
ACTIVE(afterNth(X1, X2)) → AFTERNTH(active(X1), X2)
PROPER(U11(X1, X2, X3)) → U111(proper(X1), proper(X2), proper(X3))
U511(ok(X1), ok(X2), ok(X3)) → U511(X1, X2, X3)
ACTIVE(sel(X1, X2)) → SEL(active(X1), X2)
ACTIVE(pair(X1, X2)) → ACTIVE(X1)
ACTIVE(splitAt(X1, X2)) → SPLITAT(active(X1), X2)
PROPER(U61(X1, X2)) → PROPER(X2)
PROPER(afterNth(X1, X2)) → AFTERNTH(proper(X1), proper(X2))
U411(mark(X1), X2) → U411(X1, X2)
PROPER(head(X)) → PROPER(X)
ACTIVE(isLNat(tail(V1))) → ISLNAT(V1)
ACTIVE(isLNat(cons(V1, V2))) → ISLNAT(V2)
ACTIVE(cons(X1, X2)) → ACTIVE(X1)
ACTIVE(snd(pair(X, Y))) → ISLNAT(Y)
PROPER(U61(X1, X2)) → U611(proper(X1), proper(X2))
ACTIVE(isLNat(afterNth(V1, V2))) → AND(isNatural(V1), isLNat(V2))
PROPER(U21(X1, X2)) → PROPER(X1)
PROPER(isLNat(X)) → ISLNAT(proper(X))
PROPER(pair(X1, X2)) → PROPER(X2)
ACTIVE(take(N, XS)) → AND(isNatural(N), isLNat(XS))
ACTIVE(isNatural(sel(V1, V2))) → AND(isNatural(V1), isLNat(V2))
ACTIVE(isPLNat(pair(V1, V2))) → ISLNAT(V1)
ACTIVE(take(N, XS)) → ISNATURAL(N)
ACTIVE(head(cons(N, XS))) → AND(isNatural(N), isLNat(XS))
NATSFROM(mark(X)) → NATSFROM(X)
TAIL(mark(X)) → TAIL(X)
ACTIVE(head(X)) → HEAD(active(X))
SPLITAT(ok(X1), ok(X2)) → SPLITAT(X1, X2)
PROPER(snd(X)) → PROPER(X)
ACTIVE(sel(N, XS)) → ISLNAT(XS)
U811(mark(X1), X2, X3, X4) → U811(X1, X2, X3, X4)
U1011(ok(X1), ok(X2), ok(X3)) → U1011(X1, X2, X3)
SEL(mark(X1), X2) → SEL(X1, X2)
ACTIVE(take(N, XS)) → ISLNAT(XS)
PROPER(take(X1, X2)) → TAKE(proper(X1), proper(X2))
ACTIVE(take(X1, X2)) → ACTIVE(X2)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X4)
NATSFROM(ok(X)) → NATSFROM(X)
AND(ok(X1), ok(X2)) → AND(X1, X2)
ACTIVE(head(cons(N, XS))) → U311(and(isNatural(N), isLNat(XS)), N)
PROPER(U101(X1, X2, X3)) → PROPER(X1)
PROPER(U41(X1, X2)) → U411(proper(X1), proper(X2))
SEL(X1, mark(X2)) → SEL(X1, X2)
ACTIVE(pair(X1, X2)) → PAIR(active(X1), X2)
PROPER(afterNth(X1, X2)) → PROPER(X2)
ACTIVE(U51(X1, X2, X3)) → ACTIVE(X1)
U611(mark(X1), X2) → U611(X1, X2)
TOP(ok(X)) → TOP(active(X))
ACTIVE(splitAt(s(N), cons(X, XS))) → ISLNAT(XS)
ACTIVE(isLNat(take(V1, V2))) → AND(isNatural(V1), isLNat(V2))
TAKE(ok(X1), ok(X2)) → TAKE(X1, X2)
PROPER(pair(X1, X2)) → PAIR(proper(X1), proper(X2))
CONS(ok(X1), ok(X2)) → CONS(X1, X2)
PROPER(splitAt(X1, X2)) → PROPER(X2)
ACTIVE(isNatural(sel(V1, V2))) → ISNATURAL(V1)
PROPER(isLNat(X)) → PROPER(X)
ACTIVE(natsFrom(X)) → NATSFROM(active(X))
ACTIVE(head(cons(N, XS))) → ISNATURAL(N)
PROPER(take(X1, X2)) → PROPER(X1)
ACTIVE(splitAt(s(N), cons(X, XS))) → U811(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS)
U1011(mark(X1), X2, X3) → U1011(X1, X2, X3)
PROPER(splitAt(X1, X2)) → PROPER(X1)
ACTIVE(U101(X1, X2, X3)) → ACTIVE(X1)
HEAD(ok(X)) → HEAD(X)
ACTIVE(U82(pair(YS, ZS), X)) → CONS(X, YS)
ACTIVE(isNatural(s(V1))) → ISNATURAL(V1)
ACTIVE(s(X)) → S(active(X))
PROPER(fst(X)) → FST(proper(X))
ACTIVE(fst(X)) → FST(active(X))
PROPER(U11(X1, X2, X3)) → PROPER(X3)
ACTIVE(U61(X1, X2)) → ACTIVE(X1)
ACTIVE(take(X1, X2)) → TAKE(X1, active(X2))
AFTERNTH(X1, mark(X2)) → AFTERNTH(X1, X2)
ACTIVE(fst(pair(X, Y))) → ISLNAT(X)
ACTIVE(tail(cons(N, XS))) → ISLNAT(XS)
ACTIVE(fst(pair(X, Y))) → U211(and(isLNat(X), isLNat(Y)), X)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X1)
PROPER(isPLNat(X)) → ISPLNAT(proper(X))
ACTIVE(U101(tt, N, XS)) → FST(splitAt(N, XS))
ACTIVE(take(X1, X2)) → ACTIVE(X1)
U211(mark(X1), X2) → U211(X1, X2)
ACTIVE(U31(X1, X2)) → ACTIVE(X1)
ACTIVE(snd(X)) → ACTIVE(X)
U821(ok(X1), ok(X2)) → U821(X1, X2)
U211(ok(X1), ok(X2)) → U211(X1, X2)
U411(ok(X1), ok(X2)) → U411(X1, X2)
PROPER(sel(X1, X2)) → PROPER(X2)
ACTIVE(take(X1, X2)) → TAKE(active(X1), X2)
ACTIVE(U41(X1, X2)) → U411(active(X1), X2)
ACTIVE(U91(X1, X2)) → U911(active(X1), X2)
ACTIVE(isLNat(cons(V1, V2))) → ISNATURAL(V1)
U111(ok(X1), ok(X2), ok(X3)) → U111(X1, X2, X3)
ACTIVE(isLNat(afterNth(V1, V2))) → ISNATURAL(V1)
ACTIVE(s(X)) → ACTIVE(X)
PROPER(U91(X1, X2)) → U911(proper(X1), proper(X2))
PROPER(U82(X1, X2)) → PROPER(X2)
ACTIVE(splitAt(s(N), cons(X, XS))) → ISNATURAL(N)
ACTIVE(head(cons(N, XS))) → ISLNAT(XS)
PROPER(fst(X)) → PROPER(X)
U611(ok(X1), ok(X2)) → U611(X1, X2)
ACTIVE(U61(X1, X2)) → U611(active(X1), X2)
TOP(mark(X)) → PROPER(X)
ACTIVE(splitAt(s(N), cons(X, XS))) → AND(isNatural(N), and(isNatural(X), isLNat(XS)))
ACTIVE(and(X1, X2)) → AND(active(X1), X2)
PROPER(U31(X1, X2)) → U311(proper(X1), proper(X2))
TOP(ok(X)) → ACTIVE(X)
U911(ok(X1), ok(X2)) → U911(X1, X2)
ACTIVE(isLNat(afterNth(V1, V2))) → ISLNAT(V2)
ACTIVE(isLNat(fst(V1))) → ISPLNAT(V1)
ACTIVE(isLNat(cons(V1, V2))) → AND(isNatural(V1), isLNat(V2))
ACTIVE(U41(X1, X2)) → ACTIVE(X1)
PROPER(tail(X)) → PROPER(X)
ACTIVE(U81(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(fst(X)) → ACTIVE(X)
ACTIVE(fst(pair(X, Y))) → AND(isLNat(X), isLNat(Y))
PROPER(afterNth(X1, X2)) → PROPER(X1)
ACTIVE(isLNat(snd(V1))) → ISPLNAT(V1)
ACTIVE(afterNth(N, XS)) → AND(isNatural(N), isLNat(XS))
ACTIVE(natsFrom(X)) → ACTIVE(X)
PROPER(head(X)) → HEAD(proper(X))
ACTIVE(U51(tt, N, XS)) → HEAD(afterNth(N, XS))
ACTIVE(afterNth(N, XS)) → U111(and(isNatural(N), isLNat(XS)), N, XS)
PROPER(U101(X1, X2, X3)) → PROPER(X3)
ACTIVE(snd(pair(X, Y))) → AND(isLNat(X), isLNat(Y))
AND(mark(X1), X2) → AND(X1, X2)
PROPER(U11(X1, X2, X3)) → PROPER(X2)
ACTIVE(splitAt(X1, X2)) → SPLITAT(X1, active(X2))
ACTIVE(snd(pair(X, Y))) → ISLNAT(X)
ACTIVE(tail(cons(N, XS))) → ISNATURAL(N)
PROPER(U51(X1, X2, X3)) → PROPER(X2)
ACTIVE(isNatural(sel(V1, V2))) → ISLNAT(V2)
PROPER(U21(X1, X2)) → U211(proper(X1), proper(X2))
ACTIVE(fst(pair(X, Y))) → ISLNAT(Y)
ACTIVE(sel(X1, X2)) → ACTIVE(X1)
ACTIVE(U21(X1, X2)) → ACTIVE(X1)
ACTIVE(pair(X1, X2)) → PAIR(X1, active(X2))
ACTIVE(tail(cons(N, XS))) → U911(and(isNatural(N), isLNat(XS)), XS)
HEAD(mark(X)) → HEAD(X)
PROPER(snd(X)) → SND(proper(X))
ACTIVE(isLNat(take(V1, V2))) → ISLNAT(V2)
PAIR(ok(X1), ok(X2)) → PAIR(X1, X2)
ACTIVE(U91(X1, X2)) → ACTIVE(X1)
PROPER(cons(X1, X2)) → PROPER(X2)
ACTIVE(U11(tt, N, XS)) → SND(splitAt(N, XS))
ACTIVE(U31(X1, X2)) → U311(active(X1), X2)
PROPER(sel(X1, X2)) → SEL(proper(X1), proper(X2))
ACTIVE(U81(tt, N, X, XS)) → U821(splitAt(N, XS), X)
AFTERNTH(mark(X1), X2) → AFTERNTH(X1, X2)
PROPER(s(X)) → S(proper(X))
PROPER(tail(X)) → TAIL(proper(X))
ACTIVE(tail(cons(N, XS))) → AND(isNatural(N), isLNat(XS))
ACTIVE(and(X1, X2)) → ACTIVE(X1)
ACTIVE(splitAt(0, XS)) → U711(isLNat(XS), XS)
PROPER(U91(X1, X2)) → PROPER(X1)
PROPER(U71(X1, X2)) → U711(proper(X1), proper(X2))
ACTIVE(U71(tt, XS)) → PAIR(nil, XS)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X2)
PROPER(and(X1, X2)) → PROPER(X2)
PROPER(U51(X1, X2, X3)) → PROPER(X3)
TAKE(mark(X1), X2) → TAKE(X1, X2)
ACTIVE(isPLNat(splitAt(V1, V2))) → AND(isNatural(V1), isLNat(V2))
PAIR(X1, mark(X2)) → PAIR(X1, X2)
U811(ok(X1), ok(X2), ok(X3), ok(X4)) → U811(X1, X2, X3, X4)
ACTIVE(pair(X1, X2)) → ACTIVE(X2)
SPLITAT(X1, mark(X2)) → SPLITAT(X1, X2)
PROPER(U51(X1, X2, X3)) → PROPER(X1)
PROPER(U101(X1, X2, X3)) → U1011(proper(X1), proper(X2), proper(X3))
PROPER(U91(X1, X2)) → PROPER(X2)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X3)
ACTIVE(U51(X1, X2, X3)) → U511(active(X1), X2, X3)
ACTIVE(snd(pair(X, Y))) → U611(and(isLNat(X), isLNat(Y)), Y)
PROPER(s(X)) → PROPER(X)
ACTIVE(U82(pair(YS, ZS), X)) → PAIR(cons(X, YS), ZS)
ACTIVE(sel(N, XS)) → U511(and(isNatural(N), isLNat(XS)), N, XS)
TAIL(ok(X)) → TAIL(X)
ISLNAT(ok(X)) → ISLNAT(X)
PROPER(take(X1, X2)) → PROPER(X2)
ACTIVE(tail(X)) → TAIL(active(X))
PROPER(U61(X1, X2)) → PROPER(X1)
ACTIVE(sel(X1, X2)) → SEL(X1, active(X2))
ACTIVE(U41(tt, N)) → CONS(N, natsFrom(s(N)))
ACTIVE(splitAt(X1, X2)) → ACTIVE(X2)
PROPER(U41(X1, X2)) → PROPER(X1)
ACTIVE(isPLNat(splitAt(V1, V2))) → ISLNAT(V2)
ACTIVE(U71(X1, X2)) → ACTIVE(X1)
PROPER(U31(X1, X2)) → PROPER(X2)
ACTIVE(U51(tt, N, XS)) → AFTERNTH(N, XS)
U511(mark(X1), X2, X3) → U511(X1, X2, X3)
PROPER(U71(X1, X2)) → PROPER(X2)
TAKE(X1, mark(X2)) → TAKE(X1, X2)
ACTIVE(isNatural(head(V1))) → ISLNAT(V1)
PROPER(U11(X1, X2, X3)) → PROPER(X1)
PROPER(sel(X1, X2)) → PROPER(X1)
ACTIVE(splitAt(s(N), cons(X, XS))) → ISNATURAL(X)
TOP(mark(X)) → TOP(proper(X))
PROPER(U81(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U51(X1, X2, X3)) → U511(proper(X1), proper(X2), proper(X3))
PROPER(U21(X1, X2)) → PROPER(X2)
PROPER(isNatural(X)) → PROPER(X)
ACTIVE(natsFrom(N)) → U411(isNatural(N), N)
ACTIVE(U81(tt, N, X, XS)) → SPLITAT(N, XS)
ACTIVE(U41(tt, N)) → S(N)
ACTIVE(isPLNat(splitAt(V1, V2))) → ISNATURAL(V1)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
QDP
      ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

U111(mark(X1), X2, X3) → U111(X1, X2, X3)
PROPER(U82(X1, X2)) → U821(proper(X1), proper(X2))
ACTIVE(U82(X1, X2)) → U821(active(X1), X2)
PROPER(U71(X1, X2)) → PROPER(X1)
U911(mark(X1), X2) → U911(X1, X2)
U711(mark(X1), X2) → U711(X1, X2)
ACTIVE(U82(X1, X2)) → ACTIVE(X1)
ACTIVE(cons(X1, X2)) → CONS(active(X1), X2)
ACTIVE(isLNat(natsFrom(V1))) → ISNATURAL(V1)
PROPER(U31(X1, X2)) → PROPER(X1)
SEL(ok(X1), ok(X2)) → SEL(X1, X2)
ACTIVE(U41(tt, N)) → NATSFROM(s(N))
FST(mark(X)) → FST(X)
ACTIVE(afterNth(N, XS)) → ISNATURAL(N)
SND(ok(X)) → SND(X)
ACTIVE(U21(X1, X2)) → U211(active(X1), X2)
ACTIVE(sel(N, XS)) → AND(isNatural(N), isLNat(XS))
U311(mark(X1), X2) → U311(X1, X2)
ISPLNAT(ok(X)) → ISPLNAT(X)
ACTIVE(U101(X1, X2, X3)) → U1011(active(X1), X2, X3)
SND(mark(X)) → SND(X)
PROPER(splitAt(X1, X2)) → SPLITAT(proper(X1), proper(X2))
ACTIVE(isLNat(take(V1, V2))) → ISNATURAL(V1)
PROPER(natsFrom(X)) → NATSFROM(proper(X))
ACTIVE(tail(X)) → ACTIVE(X)
U711(ok(X1), ok(X2)) → U711(X1, X2)
PROPER(U81(X1, X2, X3, X4)) → U811(proper(X1), proper(X2), proper(X3), proper(X4))
S(ok(X)) → S(X)
CONS(mark(X1), X2) → CONS(X1, X2)
ACTIVE(U11(tt, N, XS)) → SPLITAT(N, XS)
ACTIVE(isPLNat(pair(V1, V2))) → AND(isLNat(V1), isLNat(V2))
ACTIVE(U71(X1, X2)) → U711(active(X1), X2)
ACTIVE(U81(X1, X2, X3, X4)) → U811(active(X1), X2, X3, X4)
ACTIVE(afterNth(N, XS)) → ISLNAT(XS)
PAIR(mark(X1), X2) → PAIR(X1, X2)
ACTIVE(sel(X1, X2)) → ACTIVE(X2)
PROPER(and(X1, X2)) → AND(proper(X1), proper(X2))
PROPER(U82(X1, X2)) → PROPER(X1)
ACTIVE(isPLNat(pair(V1, V2))) → ISLNAT(V2)
SPLITAT(mark(X1), X2) → SPLITAT(X1, X2)
PROPER(U101(X1, X2, X3)) → PROPER(X2)
FST(ok(X)) → FST(X)
PROPER(cons(X1, X2)) → PROPER(X1)
U821(mark(X1), X2) → U821(X1, X2)
AFTERNTH(ok(X1), ok(X2)) → AFTERNTH(X1, X2)
ACTIVE(splitAt(0, XS)) → ISLNAT(XS)
ACTIVE(afterNth(X1, X2)) → AFTERNTH(X1, active(X2))
U311(ok(X1), ok(X2)) → U311(X1, X2)
ACTIVE(splitAt(s(N), cons(X, XS))) → AND(isNatural(X), isLNat(XS))
ACTIVE(natsFrom(N)) → ISNATURAL(N)
PROPER(isNatural(X)) → ISNATURAL(proper(X))
ACTIVE(U11(X1, X2, X3)) → U111(active(X1), X2, X3)
S(mark(X)) → S(X)
PROPER(U41(X1, X2)) → PROPER(X2)
PROPER(cons(X1, X2)) → CONS(proper(X1), proper(X2))
PROPER(and(X1, X2)) → PROPER(X1)
ACTIVE(snd(X)) → SND(active(X))
PROPER(pair(X1, X2)) → PROPER(X1)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X1)
ACTIVE(U11(X1, X2, X3)) → ACTIVE(X1)
PROPER(natsFrom(X)) → PROPER(X)
ACTIVE(U101(tt, N, XS)) → SPLITAT(N, XS)
PROPER(isPLNat(X)) → PROPER(X)
ISNATURAL(ok(X)) → ISNATURAL(X)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X1)
ACTIVE(head(X)) → ACTIVE(X)
ACTIVE(take(N, XS)) → U1011(and(isNatural(N), isLNat(XS)), N, XS)
ACTIVE(sel(N, XS)) → ISNATURAL(N)
ACTIVE(afterNth(X1, X2)) → AFTERNTH(active(X1), X2)
PROPER(U11(X1, X2, X3)) → U111(proper(X1), proper(X2), proper(X3))
U511(ok(X1), ok(X2), ok(X3)) → U511(X1, X2, X3)
ACTIVE(sel(X1, X2)) → SEL(active(X1), X2)
ACTIVE(pair(X1, X2)) → ACTIVE(X1)
ACTIVE(splitAt(X1, X2)) → SPLITAT(active(X1), X2)
PROPER(U61(X1, X2)) → PROPER(X2)
PROPER(afterNth(X1, X2)) → AFTERNTH(proper(X1), proper(X2))
U411(mark(X1), X2) → U411(X1, X2)
PROPER(head(X)) → PROPER(X)
ACTIVE(isLNat(tail(V1))) → ISLNAT(V1)
ACTIVE(isLNat(cons(V1, V2))) → ISLNAT(V2)
ACTIVE(cons(X1, X2)) → ACTIVE(X1)
ACTIVE(snd(pair(X, Y))) → ISLNAT(Y)
PROPER(U61(X1, X2)) → U611(proper(X1), proper(X2))
ACTIVE(isLNat(afterNth(V1, V2))) → AND(isNatural(V1), isLNat(V2))
PROPER(U21(X1, X2)) → PROPER(X1)
PROPER(isLNat(X)) → ISLNAT(proper(X))
PROPER(pair(X1, X2)) → PROPER(X2)
ACTIVE(take(N, XS)) → AND(isNatural(N), isLNat(XS))
ACTIVE(isNatural(sel(V1, V2))) → AND(isNatural(V1), isLNat(V2))
ACTIVE(isPLNat(pair(V1, V2))) → ISLNAT(V1)
ACTIVE(take(N, XS)) → ISNATURAL(N)
ACTIVE(head(cons(N, XS))) → AND(isNatural(N), isLNat(XS))
NATSFROM(mark(X)) → NATSFROM(X)
TAIL(mark(X)) → TAIL(X)
ACTIVE(head(X)) → HEAD(active(X))
SPLITAT(ok(X1), ok(X2)) → SPLITAT(X1, X2)
PROPER(snd(X)) → PROPER(X)
ACTIVE(sel(N, XS)) → ISLNAT(XS)
U811(mark(X1), X2, X3, X4) → U811(X1, X2, X3, X4)
U1011(ok(X1), ok(X2), ok(X3)) → U1011(X1, X2, X3)
SEL(mark(X1), X2) → SEL(X1, X2)
ACTIVE(take(N, XS)) → ISLNAT(XS)
PROPER(take(X1, X2)) → TAKE(proper(X1), proper(X2))
ACTIVE(take(X1, X2)) → ACTIVE(X2)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X4)
NATSFROM(ok(X)) → NATSFROM(X)
AND(ok(X1), ok(X2)) → AND(X1, X2)
ACTIVE(head(cons(N, XS))) → U311(and(isNatural(N), isLNat(XS)), N)
PROPER(U101(X1, X2, X3)) → PROPER(X1)
PROPER(U41(X1, X2)) → U411(proper(X1), proper(X2))
SEL(X1, mark(X2)) → SEL(X1, X2)
ACTIVE(pair(X1, X2)) → PAIR(active(X1), X2)
PROPER(afterNth(X1, X2)) → PROPER(X2)
ACTIVE(U51(X1, X2, X3)) → ACTIVE(X1)
U611(mark(X1), X2) → U611(X1, X2)
TOP(ok(X)) → TOP(active(X))
ACTIVE(splitAt(s(N), cons(X, XS))) → ISLNAT(XS)
ACTIVE(isLNat(take(V1, V2))) → AND(isNatural(V1), isLNat(V2))
TAKE(ok(X1), ok(X2)) → TAKE(X1, X2)
PROPER(pair(X1, X2)) → PAIR(proper(X1), proper(X2))
CONS(ok(X1), ok(X2)) → CONS(X1, X2)
PROPER(splitAt(X1, X2)) → PROPER(X2)
ACTIVE(isNatural(sel(V1, V2))) → ISNATURAL(V1)
PROPER(isLNat(X)) → PROPER(X)
ACTIVE(natsFrom(X)) → NATSFROM(active(X))
ACTIVE(head(cons(N, XS))) → ISNATURAL(N)
PROPER(take(X1, X2)) → PROPER(X1)
ACTIVE(splitAt(s(N), cons(X, XS))) → U811(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS)
U1011(mark(X1), X2, X3) → U1011(X1, X2, X3)
PROPER(splitAt(X1, X2)) → PROPER(X1)
ACTIVE(U101(X1, X2, X3)) → ACTIVE(X1)
HEAD(ok(X)) → HEAD(X)
ACTIVE(U82(pair(YS, ZS), X)) → CONS(X, YS)
ACTIVE(isNatural(s(V1))) → ISNATURAL(V1)
ACTIVE(s(X)) → S(active(X))
PROPER(fst(X)) → FST(proper(X))
ACTIVE(fst(X)) → FST(active(X))
PROPER(U11(X1, X2, X3)) → PROPER(X3)
ACTIVE(U61(X1, X2)) → ACTIVE(X1)
ACTIVE(take(X1, X2)) → TAKE(X1, active(X2))
AFTERNTH(X1, mark(X2)) → AFTERNTH(X1, X2)
ACTIVE(fst(pair(X, Y))) → ISLNAT(X)
ACTIVE(tail(cons(N, XS))) → ISLNAT(XS)
ACTIVE(fst(pair(X, Y))) → U211(and(isLNat(X), isLNat(Y)), X)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X1)
PROPER(isPLNat(X)) → ISPLNAT(proper(X))
ACTIVE(U101(tt, N, XS)) → FST(splitAt(N, XS))
ACTIVE(take(X1, X2)) → ACTIVE(X1)
U211(mark(X1), X2) → U211(X1, X2)
ACTIVE(U31(X1, X2)) → ACTIVE(X1)
ACTIVE(snd(X)) → ACTIVE(X)
U821(ok(X1), ok(X2)) → U821(X1, X2)
U211(ok(X1), ok(X2)) → U211(X1, X2)
U411(ok(X1), ok(X2)) → U411(X1, X2)
PROPER(sel(X1, X2)) → PROPER(X2)
ACTIVE(take(X1, X2)) → TAKE(active(X1), X2)
ACTIVE(U41(X1, X2)) → U411(active(X1), X2)
ACTIVE(U91(X1, X2)) → U911(active(X1), X2)
ACTIVE(isLNat(cons(V1, V2))) → ISNATURAL(V1)
U111(ok(X1), ok(X2), ok(X3)) → U111(X1, X2, X3)
ACTIVE(isLNat(afterNth(V1, V2))) → ISNATURAL(V1)
ACTIVE(s(X)) → ACTIVE(X)
PROPER(U91(X1, X2)) → U911(proper(X1), proper(X2))
PROPER(U82(X1, X2)) → PROPER(X2)
ACTIVE(splitAt(s(N), cons(X, XS))) → ISNATURAL(N)
ACTIVE(head(cons(N, XS))) → ISLNAT(XS)
PROPER(fst(X)) → PROPER(X)
U611(ok(X1), ok(X2)) → U611(X1, X2)
ACTIVE(U61(X1, X2)) → U611(active(X1), X2)
TOP(mark(X)) → PROPER(X)
ACTIVE(splitAt(s(N), cons(X, XS))) → AND(isNatural(N), and(isNatural(X), isLNat(XS)))
ACTIVE(and(X1, X2)) → AND(active(X1), X2)
PROPER(U31(X1, X2)) → U311(proper(X1), proper(X2))
TOP(ok(X)) → ACTIVE(X)
U911(ok(X1), ok(X2)) → U911(X1, X2)
ACTIVE(isLNat(afterNth(V1, V2))) → ISLNAT(V2)
ACTIVE(isLNat(fst(V1))) → ISPLNAT(V1)
ACTIVE(isLNat(cons(V1, V2))) → AND(isNatural(V1), isLNat(V2))
ACTIVE(U41(X1, X2)) → ACTIVE(X1)
PROPER(tail(X)) → PROPER(X)
ACTIVE(U81(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(fst(X)) → ACTIVE(X)
ACTIVE(fst(pair(X, Y))) → AND(isLNat(X), isLNat(Y))
PROPER(afterNth(X1, X2)) → PROPER(X1)
ACTIVE(isLNat(snd(V1))) → ISPLNAT(V1)
ACTIVE(afterNth(N, XS)) → AND(isNatural(N), isLNat(XS))
ACTIVE(natsFrom(X)) → ACTIVE(X)
PROPER(head(X)) → HEAD(proper(X))
ACTIVE(U51(tt, N, XS)) → HEAD(afterNth(N, XS))
ACTIVE(afterNth(N, XS)) → U111(and(isNatural(N), isLNat(XS)), N, XS)
PROPER(U101(X1, X2, X3)) → PROPER(X3)
ACTIVE(snd(pair(X, Y))) → AND(isLNat(X), isLNat(Y))
AND(mark(X1), X2) → AND(X1, X2)
PROPER(U11(X1, X2, X3)) → PROPER(X2)
ACTIVE(splitAt(X1, X2)) → SPLITAT(X1, active(X2))
ACTIVE(snd(pair(X, Y))) → ISLNAT(X)
ACTIVE(tail(cons(N, XS))) → ISNATURAL(N)
PROPER(U51(X1, X2, X3)) → PROPER(X2)
ACTIVE(isNatural(sel(V1, V2))) → ISLNAT(V2)
PROPER(U21(X1, X2)) → U211(proper(X1), proper(X2))
ACTIVE(fst(pair(X, Y))) → ISLNAT(Y)
ACTIVE(sel(X1, X2)) → ACTIVE(X1)
ACTIVE(U21(X1, X2)) → ACTIVE(X1)
ACTIVE(pair(X1, X2)) → PAIR(X1, active(X2))
ACTIVE(tail(cons(N, XS))) → U911(and(isNatural(N), isLNat(XS)), XS)
HEAD(mark(X)) → HEAD(X)
PROPER(snd(X)) → SND(proper(X))
ACTIVE(isLNat(take(V1, V2))) → ISLNAT(V2)
PAIR(ok(X1), ok(X2)) → PAIR(X1, X2)
ACTIVE(U91(X1, X2)) → ACTIVE(X1)
PROPER(cons(X1, X2)) → PROPER(X2)
ACTIVE(U11(tt, N, XS)) → SND(splitAt(N, XS))
ACTIVE(U31(X1, X2)) → U311(active(X1), X2)
PROPER(sel(X1, X2)) → SEL(proper(X1), proper(X2))
ACTIVE(U81(tt, N, X, XS)) → U821(splitAt(N, XS), X)
AFTERNTH(mark(X1), X2) → AFTERNTH(X1, X2)
PROPER(s(X)) → S(proper(X))
PROPER(tail(X)) → TAIL(proper(X))
ACTIVE(tail(cons(N, XS))) → AND(isNatural(N), isLNat(XS))
ACTIVE(and(X1, X2)) → ACTIVE(X1)
ACTIVE(splitAt(0, XS)) → U711(isLNat(XS), XS)
PROPER(U91(X1, X2)) → PROPER(X1)
PROPER(U71(X1, X2)) → U711(proper(X1), proper(X2))
ACTIVE(U71(tt, XS)) → PAIR(nil, XS)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X2)
PROPER(and(X1, X2)) → PROPER(X2)
PROPER(U51(X1, X2, X3)) → PROPER(X3)
TAKE(mark(X1), X2) → TAKE(X1, X2)
ACTIVE(isPLNat(splitAt(V1, V2))) → AND(isNatural(V1), isLNat(V2))
PAIR(X1, mark(X2)) → PAIR(X1, X2)
U811(ok(X1), ok(X2), ok(X3), ok(X4)) → U811(X1, X2, X3, X4)
ACTIVE(pair(X1, X2)) → ACTIVE(X2)
SPLITAT(X1, mark(X2)) → SPLITAT(X1, X2)
PROPER(U51(X1, X2, X3)) → PROPER(X1)
PROPER(U101(X1, X2, X3)) → U1011(proper(X1), proper(X2), proper(X3))
PROPER(U91(X1, X2)) → PROPER(X2)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X3)
ACTIVE(U51(X1, X2, X3)) → U511(active(X1), X2, X3)
ACTIVE(snd(pair(X, Y))) → U611(and(isLNat(X), isLNat(Y)), Y)
PROPER(s(X)) → PROPER(X)
ACTIVE(U82(pair(YS, ZS), X)) → PAIR(cons(X, YS), ZS)
ACTIVE(sel(N, XS)) → U511(and(isNatural(N), isLNat(XS)), N, XS)
TAIL(ok(X)) → TAIL(X)
ISLNAT(ok(X)) → ISLNAT(X)
PROPER(take(X1, X2)) → PROPER(X2)
ACTIVE(tail(X)) → TAIL(active(X))
PROPER(U61(X1, X2)) → PROPER(X1)
ACTIVE(sel(X1, X2)) → SEL(X1, active(X2))
ACTIVE(U41(tt, N)) → CONS(N, natsFrom(s(N)))
ACTIVE(splitAt(X1, X2)) → ACTIVE(X2)
PROPER(U41(X1, X2)) → PROPER(X1)
ACTIVE(isPLNat(splitAt(V1, V2))) → ISLNAT(V2)
ACTIVE(U71(X1, X2)) → ACTIVE(X1)
PROPER(U31(X1, X2)) → PROPER(X2)
ACTIVE(U51(tt, N, XS)) → AFTERNTH(N, XS)
U511(mark(X1), X2, X3) → U511(X1, X2, X3)
PROPER(U71(X1, X2)) → PROPER(X2)
TAKE(X1, mark(X2)) → TAKE(X1, X2)
ACTIVE(isNatural(head(V1))) → ISLNAT(V1)
PROPER(U11(X1, X2, X3)) → PROPER(X1)
PROPER(sel(X1, X2)) → PROPER(X1)
ACTIVE(splitAt(s(N), cons(X, XS))) → ISNATURAL(X)
TOP(mark(X)) → TOP(proper(X))
PROPER(U81(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U51(X1, X2, X3)) → U511(proper(X1), proper(X2), proper(X3))
PROPER(U21(X1, X2)) → PROPER(X2)
PROPER(isNatural(X)) → PROPER(X)
ACTIVE(natsFrom(N)) → U411(isNatural(N), N)
ACTIVE(U81(tt, N, X, XS)) → SPLITAT(N, XS)
ACTIVE(U41(tt, N)) → S(N)
ACTIVE(isPLNat(splitAt(V1, V2))) → ISNATURAL(V1)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 30 SCCs with 134 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISPLNAT(ok(X)) → ISPLNAT(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISPLNAT(ok(X)) → ISPLNAT(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISLNAT(ok(X)) → ISLNAT(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISLNAT(ok(X)) → ISLNAT(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNATURAL(ok(X)) → ISNATURAL(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNATURAL(ok(X)) → ISNATURAL(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

SEL(mark(X1), X2) → SEL(X1, X2)
SEL(ok(X1), ok(X2)) → SEL(X1, X2)
SEL(X1, mark(X2)) → SEL(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

SEL(mark(X1), X2) → SEL(X1, X2)
SEL(ok(X1), ok(X2)) → SEL(X1, X2)
SEL(X1, mark(X2)) → SEL(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TAKE(ok(X1), ok(X2)) → TAKE(X1, X2)
TAKE(mark(X1), X2) → TAKE(X1, X2)
TAKE(X1, mark(X2)) → TAKE(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TAKE(ok(X1), ok(X2)) → TAKE(X1, X2)
TAKE(mark(X1), X2) → TAKE(X1, X2)
TAKE(X1, mark(X2)) → TAKE(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TAIL(ok(X)) → TAIL(X)
TAIL(mark(X)) → TAIL(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TAIL(ok(X)) → TAIL(X)
TAIL(mark(X)) → TAIL(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

AND(mark(X1), X2) → AND(X1, X2)
AND(ok(X1), ok(X2)) → AND(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

AND(mark(X1), X2) → AND(X1, X2)
AND(ok(X1), ok(X2)) → AND(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U911(mark(X1), X2) → U911(X1, X2)
U911(ok(X1), ok(X2)) → U911(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U911(mark(X1), X2) → U911(X1, X2)
U911(ok(X1), ok(X2)) → U911(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U821(ok(X1), ok(X2)) → U821(X1, X2)
U821(mark(X1), X2) → U821(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U821(ok(X1), ok(X2)) → U821(X1, X2)
U821(mark(X1), X2) → U821(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U811(ok(X1), ok(X2), ok(X3), ok(X4)) → U811(X1, X2, X3, X4)
U811(mark(X1), X2, X3, X4) → U811(X1, X2, X3, X4)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U811(ok(X1), ok(X2), ok(X3), ok(X4)) → U811(X1, X2, X3, X4)
U811(mark(X1), X2, X3, X4) → U811(X1, X2, X3, X4)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PAIR(ok(X1), ok(X2)) → PAIR(X1, X2)
PAIR(mark(X1), X2) → PAIR(X1, X2)
PAIR(X1, mark(X2)) → PAIR(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PAIR(ok(X1), ok(X2)) → PAIR(X1, X2)
PAIR(mark(X1), X2) → PAIR(X1, X2)
PAIR(X1, mark(X2)) → PAIR(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U711(mark(X1), X2) → U711(X1, X2)
U711(ok(X1), ok(X2)) → U711(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U711(mark(X1), X2) → U711(X1, X2)
U711(ok(X1), ok(X2)) → U711(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U611(mark(X1), X2) → U611(X1, X2)
U611(ok(X1), ok(X2)) → U611(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U611(mark(X1), X2) → U611(X1, X2)
U611(ok(X1), ok(X2)) → U611(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

AFTERNTH(ok(X1), ok(X2)) → AFTERNTH(X1, X2)
AFTERNTH(mark(X1), X2) → AFTERNTH(X1, X2)
AFTERNTH(X1, mark(X2)) → AFTERNTH(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

AFTERNTH(ok(X1), ok(X2)) → AFTERNTH(X1, X2)
AFTERNTH(mark(X1), X2) → AFTERNTH(X1, X2)
AFTERNTH(X1, mark(X2)) → AFTERNTH(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

HEAD(mark(X)) → HEAD(X)
HEAD(ok(X)) → HEAD(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

HEAD(mark(X)) → HEAD(X)
HEAD(ok(X)) → HEAD(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(mark(X1), X2, X3) → U511(X1, X2, X3)
U511(ok(X1), ok(X2), ok(X3)) → U511(X1, X2, X3)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(mark(X1), X2, X3) → U511(X1, X2, X3)
U511(ok(X1), ok(X2), ok(X3)) → U511(X1, X2, X3)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

S(ok(X)) → S(X)
S(mark(X)) → S(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

S(ok(X)) → S(X)
S(mark(X)) → S(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

NATSFROM(ok(X)) → NATSFROM(X)
NATSFROM(mark(X)) → NATSFROM(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

NATSFROM(ok(X)) → NATSFROM(X)
NATSFROM(mark(X)) → NATSFROM(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

CONS(mark(X1), X2) → CONS(X1, X2)
CONS(ok(X1), ok(X2)) → CONS(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

CONS(mark(X1), X2) → CONS(X1, X2)
CONS(ok(X1), ok(X2)) → CONS(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U411(ok(X1), ok(X2)) → U411(X1, X2)
U411(mark(X1), X2) → U411(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U411(ok(X1), ok(X2)) → U411(X1, X2)
U411(mark(X1), X2) → U411(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U311(mark(X1), X2) → U311(X1, X2)
U311(ok(X1), ok(X2)) → U311(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U311(mark(X1), X2) → U311(X1, X2)
U311(ok(X1), ok(X2)) → U311(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U211(ok(X1), ok(X2)) → U211(X1, X2)
U211(mark(X1), X2) → U211(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U211(ok(X1), ok(X2)) → U211(X1, X2)
U211(mark(X1), X2) → U211(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

SND(mark(X)) → SND(X)
SND(ok(X)) → SND(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

SND(mark(X)) → SND(X)
SND(ok(X)) → SND(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U111(mark(X1), X2, X3) → U111(X1, X2, X3)
U111(ok(X1), ok(X2), ok(X3)) → U111(X1, X2, X3)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U111(mark(X1), X2, X3) → U111(X1, X2, X3)
U111(ok(X1), ok(X2), ok(X3)) → U111(X1, X2, X3)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

SPLITAT(X1, mark(X2)) → SPLITAT(X1, X2)
SPLITAT(mark(X1), X2) → SPLITAT(X1, X2)
SPLITAT(ok(X1), ok(X2)) → SPLITAT(X1, X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

SPLITAT(X1, mark(X2)) → SPLITAT(X1, X2)
SPLITAT(mark(X1), X2) → SPLITAT(X1, X2)
SPLITAT(ok(X1), ok(X2)) → SPLITAT(X1, X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

FST(ok(X)) → FST(X)
FST(mark(X)) → FST(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

FST(ok(X)) → FST(X)
FST(mark(X)) → FST(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U1011(mark(X1), X2, X3) → U1011(X1, X2, X3)
U1011(ok(X1), ok(X2), ok(X3)) → U1011(X1, X2, X3)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U1011(mark(X1), X2, X3) → U1011(X1, X2, X3)
U1011(ok(X1), ok(X2), ok(X3)) → U1011(X1, X2, X3)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PROPER(U71(X1, X2)) → PROPER(X1)
PROPER(U11(X1, X2, X3)) → PROPER(X3)
PROPER(U61(X1, X2)) → PROPER(X2)
PROPER(head(X)) → PROPER(X)
PROPER(U31(X1, X2)) → PROPER(X1)
PROPER(cons(X1, X2)) → PROPER(X2)
PROPER(U21(X1, X2)) → PROPER(X1)
PROPER(sel(X1, X2)) → PROPER(X2)
PROPER(pair(X1, X2)) → PROPER(X2)
PROPER(U91(X1, X2)) → PROPER(X1)
PROPER(and(X1, X2)) → PROPER(X2)
PROPER(U51(X1, X2, X3)) → PROPER(X3)
PROPER(U82(X1, X2)) → PROPER(X2)
PROPER(snd(X)) → PROPER(X)
PROPER(fst(X)) → PROPER(X)
PROPER(U51(X1, X2, X3)) → PROPER(X1)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U91(X1, X2)) → PROPER(X2)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U82(X1, X2)) → PROPER(X1)
PROPER(U101(X1, X2, X3)) → PROPER(X1)
PROPER(U101(X1, X2, X3)) → PROPER(X2)
PROPER(s(X)) → PROPER(X)
PROPER(cons(X1, X2)) → PROPER(X1)
PROPER(tail(X)) → PROPER(X)
PROPER(take(X1, X2)) → PROPER(X2)
PROPER(afterNth(X1, X2)) → PROPER(X1)
PROPER(afterNth(X1, X2)) → PROPER(X2)
PROPER(U61(X1, X2)) → PROPER(X1)
PROPER(U41(X1, X2)) → PROPER(X2)
PROPER(and(X1, X2)) → PROPER(X1)
PROPER(U41(X1, X2)) → PROPER(X1)
PROPER(pair(X1, X2)) → PROPER(X1)
PROPER(U31(X1, X2)) → PROPER(X2)
PROPER(splitAt(X1, X2)) → PROPER(X2)
PROPER(isLNat(X)) → PROPER(X)
PROPER(U101(X1, X2, X3)) → PROPER(X3)
PROPER(U71(X1, X2)) → PROPER(X2)
PROPER(natsFrom(X)) → PROPER(X)
PROPER(isPLNat(X)) → PROPER(X)
PROPER(U11(X1, X2, X3)) → PROPER(X2)
PROPER(take(X1, X2)) → PROPER(X1)
PROPER(U11(X1, X2, X3)) → PROPER(X1)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X1)
PROPER(splitAt(X1, X2)) → PROPER(X1)
PROPER(sel(X1, X2)) → PROPER(X1)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U21(X1, X2)) → PROPER(X2)
PROPER(isNatural(X)) → PROPER(X)
PROPER(U51(X1, X2, X3)) → PROPER(X2)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PROPER(U71(X1, X2)) → PROPER(X1)
PROPER(U11(X1, X2, X3)) → PROPER(X3)
PROPER(U61(X1, X2)) → PROPER(X2)
PROPER(head(X)) → PROPER(X)
PROPER(U31(X1, X2)) → PROPER(X1)
PROPER(cons(X1, X2)) → PROPER(X2)
PROPER(U21(X1, X2)) → PROPER(X1)
PROPER(sel(X1, X2)) → PROPER(X2)
PROPER(pair(X1, X2)) → PROPER(X2)
PROPER(U91(X1, X2)) → PROPER(X1)
PROPER(and(X1, X2)) → PROPER(X2)
PROPER(U51(X1, X2, X3)) → PROPER(X3)
PROPER(U82(X1, X2)) → PROPER(X2)
PROPER(snd(X)) → PROPER(X)
PROPER(fst(X)) → PROPER(X)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X4)
PROPER(U51(X1, X2, X3)) → PROPER(X1)
PROPER(U91(X1, X2)) → PROPER(X2)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X3)
PROPER(U82(X1, X2)) → PROPER(X1)
PROPER(U101(X1, X2, X3)) → PROPER(X1)
PROPER(U101(X1, X2, X3)) → PROPER(X2)
PROPER(cons(X1, X2)) → PROPER(X1)
PROPER(s(X)) → PROPER(X)
PROPER(tail(X)) → PROPER(X)
PROPER(take(X1, X2)) → PROPER(X2)
PROPER(afterNth(X1, X2)) → PROPER(X1)
PROPER(afterNth(X1, X2)) → PROPER(X2)
PROPER(U61(X1, X2)) → PROPER(X1)
PROPER(U41(X1, X2)) → PROPER(X2)
PROPER(and(X1, X2)) → PROPER(X1)
PROPER(U41(X1, X2)) → PROPER(X1)
PROPER(pair(X1, X2)) → PROPER(X1)
PROPER(U31(X1, X2)) → PROPER(X2)
PROPER(splitAt(X1, X2)) → PROPER(X2)
PROPER(isLNat(X)) → PROPER(X)
PROPER(U101(X1, X2, X3)) → PROPER(X3)
PROPER(U71(X1, X2)) → PROPER(X2)
PROPER(natsFrom(X)) → PROPER(X)
PROPER(isPLNat(X)) → PROPER(X)
PROPER(U11(X1, X2, X3)) → PROPER(X2)
PROPER(take(X1, X2)) → PROPER(X1)
PROPER(U11(X1, X2, X3)) → PROPER(X1)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X1)
PROPER(splitAt(X1, X2)) → PROPER(X1)
PROPER(sel(X1, X2)) → PROPER(X1)
PROPER(U81(X1, X2, X3, X4)) → PROPER(X2)
PROPER(U21(X1, X2)) → PROPER(X2)
PROPER(isNatural(X)) → PROPER(X)
PROPER(U51(X1, X2, X3)) → PROPER(X2)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ACTIVE(pair(X1, X2)) → ACTIVE(X2)
ACTIVE(pair(X1, X2)) → ACTIVE(X1)
ACTIVE(take(X1, X2)) → ACTIVE(X2)
ACTIVE(sel(X1, X2)) → ACTIVE(X1)
ACTIVE(U61(X1, X2)) → ACTIVE(X1)
ACTIVE(U82(X1, X2)) → ACTIVE(X1)
ACTIVE(U21(X1, X2)) → ACTIVE(X1)
ACTIVE(sel(X1, X2)) → ACTIVE(X2)
ACTIVE(U91(X1, X2)) → ACTIVE(X1)
ACTIVE(U41(X1, X2)) → ACTIVE(X1)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X1)
ACTIVE(U81(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(fst(X)) → ACTIVE(X)
ACTIVE(cons(X1, X2)) → ACTIVE(X1)
ACTIVE(take(X1, X2)) → ACTIVE(X1)
ACTIVE(U51(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U31(X1, X2)) → ACTIVE(X1)
ACTIVE(snd(X)) → ACTIVE(X)
ACTIVE(natsFrom(X)) → ACTIVE(X)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X2)
ACTIVE(U71(X1, X2)) → ACTIVE(X1)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X1)
ACTIVE(and(X1, X2)) → ACTIVE(X1)
ACTIVE(U11(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X2)
ACTIVE(s(X)) → ACTIVE(X)
ACTIVE(head(X)) → ACTIVE(X)
ACTIVE(U101(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(tail(X)) → ACTIVE(X)

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ACTIVE(pair(X1, X2)) → ACTIVE(X2)
ACTIVE(pair(X1, X2)) → ACTIVE(X1)
ACTIVE(take(X1, X2)) → ACTIVE(X2)
ACTIVE(U61(X1, X2)) → ACTIVE(X1)
ACTIVE(sel(X1, X2)) → ACTIVE(X1)
ACTIVE(U82(X1, X2)) → ACTIVE(X1)
ACTIVE(U21(X1, X2)) → ACTIVE(X1)
ACTIVE(sel(X1, X2)) → ACTIVE(X2)
ACTIVE(U91(X1, X2)) → ACTIVE(X1)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X1)
ACTIVE(U41(X1, X2)) → ACTIVE(X1)
ACTIVE(U81(X1, X2, X3, X4)) → ACTIVE(X1)
ACTIVE(fst(X)) → ACTIVE(X)
ACTIVE(cons(X1, X2)) → ACTIVE(X1)
ACTIVE(take(X1, X2)) → ACTIVE(X1)
ACTIVE(U51(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(U31(X1, X2)) → ACTIVE(X1)
ACTIVE(snd(X)) → ACTIVE(X)
ACTIVE(natsFrom(X)) → ACTIVE(X)
ACTIVE(splitAt(X1, X2)) → ACTIVE(X2)
ACTIVE(U71(X1, X2)) → ACTIVE(X1)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X1)
ACTIVE(and(X1, X2)) → ACTIVE(X1)
ACTIVE(U11(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(afterNth(X1, X2)) → ACTIVE(X2)
ACTIVE(s(X)) → ACTIVE(X)
ACTIVE(head(X)) → ACTIVE(X)
ACTIVE(U101(X1, X2, X3)) → ACTIVE(X1)
ACTIVE(tail(X)) → ACTIVE(X)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ UsableRulesReductionPairsProof

Q DP problem:
The TRS P consists of the following rules:

TOP(mark(X)) → TOP(proper(X))
TOP(ok(X)) → TOP(active(X))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
natsFrom(mark(X)) → mark(natsFrom(X))
s(mark(X)) → mark(s(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(mark(X)) → mark(head(X))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U82(mark(X1), X2) → mark(U82(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
tail(mark(X)) → mark(tail(X))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(ok(X)) → ok(snd(X))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
s(ok(X)) → ok(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
tail(ok(X)) → ok(tail(X))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the usable rules with reduction pair processor [15] with a polynomial ordering [25], all dependency pairs and the corresponding usable rules [17] can be oriented non-strictly. All non-usable rules are removed, and those dependency pairs and usable rules that have been oriented strictly or contain non-usable symbols in their left-hand side are removed as well.

No dependency pairs are removed.

No rules are removed from R.

Used ordering: POLO with Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = x1 + 2·x2 + 2·x3   
POL(U11(x1, x2, x3)) = x1 + x2 + 2·x3   
POL(U21(x1, x2)) = x1 + x2   
POL(U31(x1, x2)) = x1 + x2   
POL(U41(x1, x2)) = 2·x1 + 2·x2   
POL(U51(x1, x2, x3)) = x1 + 2·x2 + 2·x3   
POL(U61(x1, x2)) = x1 + x2   
POL(U71(x1, x2)) = x1 + x2   
POL(U81(x1, x2, x3, x4)) = x1 + x2 + 2·x3 + x4   
POL(U82(x1, x2)) = x1 + x2   
POL(U91(x1, x2)) = x1 + 2·x2   
POL(active(x1)) = 2·x1   
POL(afterNth(x1, x2)) = 2·x1 + 2·x2   
POL(and(x1, x2)) = 2·x1 + x2   
POL(cons(x1, x2)) = x1 + x2   
POL(fst(x1)) = 2·x1   
POL(head(x1)) = 2·x1   
POL(isLNat(x1)) = 2·x1   
POL(isNatural(x1)) = x1   
POL(isPLNat(x1)) = 2·x1   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = 2·x1   
POL(nil) = 0   
POL(ok(x1)) = 2·x1   
POL(pair(x1, x2)) = 2·x1 + 2·x2   
POL(proper(x1)) = x1   
POL(s(x1)) = x1   
POL(sel(x1, x2)) = 2·x1 + 2·x2   
POL(snd(x1)) = x1   
POL(splitAt(x1, x2)) = 2·x1 + 2·x2   
POL(tail(x1)) = 2·x1   
POL(take(x1, x2)) = 2·x1 + 2·x2   
POL(tt) = 0   



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
QDP
                ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

TOP(mark(X)) → TOP(proper(X))
TOP(ok(X)) → TOP(active(X))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule TOP(mark(X)) → TOP(proper(X)) at position [0] we obtained the following new rules:

TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(mark(tt)) → TOP(ok(tt))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(mark(nil)) → TOP(ok(nil))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(mark(0)) → TOP(ok(0))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
QDP
                    ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(tt)) → TOP(ok(tt))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(mark(nil)) → TOP(ok(nil))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(X)) → TOP(active(X))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(mark(0)) → TOP(ok(0))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule TOP(ok(X)) → TOP(active(X)) at position [0] we obtained the following new rules:

TOP(ok(isLNat(nil))) → TOP(mark(tt))
TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(tt, x0))) → TOP(mark(x0))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(tail(cons(x0, x1)))) → TOP(mark(U91(and(isNatural(x0), isLNat(x1)), x1)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(ok(sel(x0, x1))) → TOP(mark(U51(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(take(x0, x1))) → TOP(mark(U101(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(head(cons(x0, x1)))) → TOP(mark(U31(and(isNatural(x0), isLNat(x1)), x0)))
TOP(ok(afterNth(x0, x1))) → TOP(mark(U11(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(U51(tt, x0, x1))) → TOP(mark(head(afterNth(x0, x1))))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(ok(isNatural(0))) → TOP(mark(tt))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
QDP
                        ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(isLNat(nil))) → TOP(mark(tt))
TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(tail(cons(x0, x1)))) → TOP(mark(U91(and(isNatural(x0), isLNat(x1)), x1)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(sel(x0, x1))) → TOP(mark(U51(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(0)) → TOP(ok(0))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(take(x0, x1))) → TOP(mark(U101(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tt)) → TOP(ok(tt))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(mark(nil)) → TOP(ok(nil))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(afterNth(x0, x1))) → TOP(mark(U11(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(ok(head(cons(x0, x1)))) → TOP(mark(U31(and(isNatural(x0), isLNat(x1)), x0)))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(U51(tt, x0, x1))) → TOP(mark(head(afterNth(x0, x1))))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(ok(isNatural(0))) → TOP(mark(tt))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 5 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
QDP
                            ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(tail(cons(x0, x1)))) → TOP(mark(U91(and(isNatural(x0), isLNat(x1)), x1)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(ok(sel(x0, x1))) → TOP(mark(U51(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(take(x0, x1))) → TOP(mark(U101(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(afterNth(x0, x1))) → TOP(mark(U11(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(ok(head(cons(x0, x1)))) → TOP(mark(U31(and(isNatural(x0), isLNat(x1)), x0)))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(U51(tt, x0, x1))) → TOP(mark(head(afterNth(x0, x1))))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(take(x0, x1))) → TOP(mark(U101(and(isNatural(x0), isLNat(x1)), x0, x1)))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(tail(cons(x0, x1)))) → TOP(mark(U91(and(isNatural(x0), isLNat(x1)), x1)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(ok(sel(x0, x1))) → TOP(mark(U51(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(afterNth(x0, x1))) → TOP(mark(U11(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(ok(head(cons(x0, x1)))) → TOP(mark(U31(and(isNatural(x0), isLNat(x1)), x0)))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(U51(tt, x0, x1))) → TOP(mark(head(afterNth(x0, x1))))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = x3   
POL(U11(x1, x2, x3)) = x3   
POL(U21(x1, x2)) = x2   
POL(U31(x1, x2)) = x2   
POL(U41(x1, x2)) = x2   
POL(U51(x1, x2, x3)) = x3   
POL(U61(x1, x2)) = x2   
POL(U71(x1, x2)) = x2   
POL(U81(x1, x2, x3, x4)) = x3 + x4   
POL(U82(x1, x2)) = x1 + x2   
POL(U91(x1, x2)) = x2   
POL(active(x1)) = x1   
POL(afterNth(x1, x2)) = x2   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(fst(x1)) = x1   
POL(head(x1)) = x1   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = x1 + x2   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = x2   
POL(snd(x1)) = x1   
POL(splitAt(x1, x2)) = x2   
POL(tail(x1)) = x1   
POL(take(x1, x2)) = 1 + x2   
POL(tt) = 0   

The following usable rules [17] were oriented:

active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U91(tt, XS)) → mark(XS)
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U31(tt, N)) → mark(N)
active(U61(tt, Y)) → mark(Y)
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(nil)) → mark(tt)
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(and(tt, X)) → mark(X)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(fst(X)) → fst(active(X))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U21(X1, X2)) → U21(active(X1), X2)
active(snd(X)) → snd(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(natsFrom(X)) → natsFrom(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(head(X)) → head(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(s(X)) → s(active(X))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
QDP
                                ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(tail(cons(x0, x1)))) → TOP(mark(U91(and(isNatural(x0), isLNat(x1)), x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(ok(sel(x0, x1))) → TOP(mark(U51(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(head(cons(x0, x1)))) → TOP(mark(U31(and(isNatural(x0), isLNat(x1)), x0)))
TOP(ok(afterNth(x0, x1))) → TOP(mark(U11(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(U51(tt, x0, x1))) → TOP(mark(head(afterNth(x0, x1))))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(sel(x0, x1))) → TOP(mark(U51(and(isNatural(x0), isLNat(x1)), x0, x1)))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(tail(cons(x0, x1)))) → TOP(mark(U91(and(isNatural(x0), isLNat(x1)), x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(head(cons(x0, x1)))) → TOP(mark(U31(and(isNatural(x0), isLNat(x1)), x0)))
TOP(ok(afterNth(x0, x1))) → TOP(mark(U11(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(U51(tt, x0, x1))) → TOP(mark(head(afterNth(x0, x1))))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = x3   
POL(U11(x1, x2, x3)) = x3   
POL(U21(x1, x2)) = x2   
POL(U31(x1, x2)) = x2   
POL(U41(x1, x2)) = x2   
POL(U51(x1, x2, x3)) = x3   
POL(U61(x1, x2)) = x2   
POL(U71(x1, x2)) = x2   
POL(U81(x1, x2, x3, x4)) = x3 + x4   
POL(U82(x1, x2)) = x1 + x2   
POL(U91(x1, x2)) = x2   
POL(active(x1)) = x1   
POL(afterNth(x1, x2)) = x2   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(fst(x1)) = x1   
POL(head(x1)) = x1   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = x1 + x2   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = 1 + x2   
POL(snd(x1)) = x1   
POL(splitAt(x1, x2)) = x2   
POL(tail(x1)) = x1   
POL(take(x1, x2)) = x2   
POL(tt) = 0   

The following usable rules [17] were oriented:

active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U91(tt, XS)) → mark(XS)
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U31(tt, N)) → mark(N)
active(U61(tt, Y)) → mark(Y)
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(nil)) → mark(tt)
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(and(tt, X)) → mark(X)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(fst(X)) → fst(active(X))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U21(X1, X2)) → U21(active(X1), X2)
active(snd(X)) → snd(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(natsFrom(X)) → natsFrom(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(head(X)) → head(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(s(X)) → s(active(X))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
QDP
                                    ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(tail(cons(x0, x1)))) → TOP(mark(U91(and(isNatural(x0), isLNat(x1)), x1)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(afterNth(x0, x1))) → TOP(mark(U11(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(ok(head(cons(x0, x1)))) → TOP(mark(U31(and(isNatural(x0), isLNat(x1)), x0)))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(U51(tt, x0, x1))) → TOP(mark(head(afterNth(x0, x1))))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(U91(tt, x0))) → TOP(mark(x0))
TOP(ok(U51(tt, x0, x1))) → TOP(mark(head(afterNth(x0, x1))))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(tail(cons(x0, x1)))) → TOP(mark(U91(and(isNatural(x0), isLNat(x1)), x1)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(afterNth(x0, x1))) → TOP(mark(U11(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(ok(head(cons(x0, x1)))) → TOP(mark(U31(and(isNatural(x0), isLNat(x1)), x0)))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = x3   
POL(U11(x1, x2, x3)) = x3   
POL(U21(x1, x2)) = x2   
POL(U31(x1, x2)) = x2   
POL(U41(x1, x2)) = x2   
POL(U51(x1, x2, x3)) = 1 + x3   
POL(U61(x1, x2)) = x2   
POL(U71(x1, x2)) = x2   
POL(U81(x1, x2, x3, x4)) = x3 + x4   
POL(U82(x1, x2)) = x1 + x2   
POL(U91(x1, x2)) = 1 + x2   
POL(active(x1)) = x1   
POL(afterNth(x1, x2)) = x2   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(fst(x1)) = x1   
POL(head(x1)) = x1   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = x1 + x2   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = 1 + x2   
POL(snd(x1)) = x1   
POL(splitAt(x1, x2)) = x2   
POL(tail(x1)) = 1 + x1   
POL(take(x1, x2)) = x2   
POL(tt) = 0   

The following usable rules [17] were oriented:

active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U91(tt, XS)) → mark(XS)
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U31(tt, N)) → mark(N)
active(U61(tt, Y)) → mark(Y)
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(nil)) → mark(tt)
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(and(tt, X)) → mark(X)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(fst(X)) → fst(active(X))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U21(X1, X2)) → U21(active(X1), X2)
active(snd(X)) → snd(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(natsFrom(X)) → natsFrom(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(head(X)) → head(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(s(X)) → s(active(X))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
QDP
                                        ↳ QDPOrderProof
                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(tail(cons(x0, x1)))) → TOP(mark(U91(and(isNatural(x0), isLNat(x1)), x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(head(cons(x0, x1)))) → TOP(mark(U31(and(isNatural(x0), isLNat(x1)), x0)))
TOP(ok(afterNth(x0, x1))) → TOP(mark(U11(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(afterNth(x0, x1))) → TOP(mark(U11(and(isNatural(x0), isLNat(x1)), x0, x1)))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(tail(cons(x0, x1)))) → TOP(mark(U91(and(isNatural(x0), isLNat(x1)), x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(head(cons(x0, x1)))) → TOP(mark(U31(and(isNatural(x0), isLNat(x1)), x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
Used ordering: Polynomial interpretation with max and min functions [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = x3   
POL(U11(x1, x2, x3)) = x3   
POL(U21(x1, x2)) = x2   
POL(U31(x1, x2)) = x2   
POL(U41(x1, x2)) = x2   
POL(U51(x1, x2, x3)) = 1 + x3   
POL(U61(x1, x2)) = x2   
POL(U71(x1, x2)) = x2   
POL(U81(x1, x2, x3, x4)) = x3 + x4   
POL(U82(x1, x2)) = x1 + x2   
POL(U91(x1, x2)) = x2   
POL(active(x1)) = x1   
POL(afterNth(x1, x2)) = 1 + x2   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(fst(x1)) = x1   
POL(head(x1)) = x1   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = x1 + x2   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = 1 + x2   
POL(snd(x1)) = x1   
POL(splitAt(x1, x2)) = x2   
POL(tail(x1)) = x1   
POL(take(x1, x2)) = x2   
POL(tt) = 0   

The following usable rules [17] were oriented:

active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U91(tt, XS)) → mark(XS)
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U31(tt, N)) → mark(N)
active(U61(tt, Y)) → mark(Y)
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(nil)) → mark(tt)
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(and(tt, X)) → mark(X)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(fst(X)) → fst(active(X))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U21(X1, X2)) → U21(active(X1), X2)
active(snd(X)) → snd(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(natsFrom(X)) → natsFrom(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(head(X)) → head(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(s(X)) → s(active(X))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
QDP
                                            ↳ QDPOrderProof
                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(tail(cons(x0, x1)))) → TOP(mark(U91(and(isNatural(x0), isLNat(x1)), x1)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(head(cons(x0, x1)))) → TOP(mark(U31(and(isNatural(x0), isLNat(x1)), x0)))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(tail(cons(x0, x1)))) → TOP(mark(U91(and(isNatural(x0), isLNat(x1)), x1)))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(head(cons(x0, x1)))) → TOP(mark(U31(and(isNatural(x0), isLNat(x1)), x0)))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = x3   
POL(U11(x1, x2, x3)) = x3   
POL(U21(x1, x2)) = x2   
POL(U31(x1, x2)) = x2   
POL(U41(x1, x2)) = x2   
POL(U51(x1, x2, x3)) = x3   
POL(U61(x1, x2)) = x2   
POL(U71(x1, x2)) = x2   
POL(U81(x1, x2, x3, x4)) = x3 + x4   
POL(U82(x1, x2)) = x1 + x2   
POL(U91(x1, x2)) = x2   
POL(active(x1)) = x1   
POL(afterNth(x1, x2)) = x2   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(fst(x1)) = x1   
POL(head(x1)) = x1   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = x1 + x2   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = x2   
POL(snd(x1)) = x1   
POL(splitAt(x1, x2)) = x2   
POL(tail(x1)) = 1 + x1   
POL(take(x1, x2)) = x2   
POL(tt) = 0   

The following usable rules [17] were oriented:

active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U91(tt, XS)) → mark(XS)
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U31(tt, N)) → mark(N)
active(U61(tt, Y)) → mark(Y)
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(nil)) → mark(tt)
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(and(tt, X)) → mark(X)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(fst(X)) → fst(active(X))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U21(X1, X2)) → U21(active(X1), X2)
active(snd(X)) → snd(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(natsFrom(X)) → natsFrom(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(head(X)) → head(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(s(X)) → s(active(X))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
QDP
                                                ↳ QDPOrderProof
                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(head(cons(x0, x1)))) → TOP(mark(U31(and(isNatural(x0), isLNat(x1)), x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(head(cons(x0, x1)))) → TOP(mark(U31(and(isNatural(x0), isLNat(x1)), x0)))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = x3   
POL(U11(x1, x2, x3)) = x3   
POL(U21(x1, x2)) = x2   
POL(U31(x1, x2)) = x2   
POL(U41(x1, x2)) = x2   
POL(U51(x1, x2, x3)) = 1 + x3   
POL(U61(x1, x2)) = x2   
POL(U71(x1, x2)) = x2   
POL(U81(x1, x2, x3, x4)) = x3 + x4   
POL(U82(x1, x2)) = x1 + x2   
POL(U91(x1, x2)) = x2   
POL(active(x1)) = x1   
POL(afterNth(x1, x2)) = x2   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(fst(x1)) = x1   
POL(head(x1)) = 1 + x1   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = x1 + x2   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = 1 + x2   
POL(snd(x1)) = x1   
POL(splitAt(x1, x2)) = x2   
POL(tail(x1)) = x1   
POL(take(x1, x2)) = x2   
POL(tt) = 0   

The following usable rules [17] were oriented:

active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U91(tt, XS)) → mark(XS)
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U31(tt, N)) → mark(N)
active(U61(tt, Y)) → mark(Y)
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(nil)) → mark(tt)
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(and(tt, X)) → mark(X)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(fst(X)) → fst(active(X))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U21(X1, X2)) → U21(active(X1), X2)
active(snd(X)) → snd(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(natsFrom(X)) → natsFrom(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(head(X)) → head(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(s(X)) → s(active(X))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
QDP
                                                    ↳ QDPOrderProof
                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = 1 + x3   
POL(U11(x1, x2, x3)) = x3   
POL(U21(x1, x2)) = x2   
POL(U31(x1, x2)) = x2   
POL(U41(x1, x2)) = x2   
POL(U51(x1, x2, x3)) = x3   
POL(U61(x1, x2)) = x2   
POL(U71(x1, x2)) = x2   
POL(U81(x1, x2, x3, x4)) = x3 + x4   
POL(U82(x1, x2)) = x1 + x2   
POL(U91(x1, x2)) = x2   
POL(active(x1)) = x1   
POL(afterNth(x1, x2)) = x2   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(fst(x1)) = x1   
POL(head(x1)) = x1   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = x1 + x2   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = x2   
POL(snd(x1)) = x1   
POL(splitAt(x1, x2)) = x2   
POL(tail(x1)) = x1   
POL(take(x1, x2)) = 1 + x2   
POL(tt) = 0   

The following usable rules [17] were oriented:

active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U91(tt, XS)) → mark(XS)
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U31(tt, N)) → mark(N)
active(U61(tt, Y)) → mark(Y)
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(nil)) → mark(tt)
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(and(tt, X)) → mark(X)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(fst(X)) → fst(active(X))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U21(X1, X2)) → U21(active(X1), X2)
active(snd(X)) → snd(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(natsFrom(X)) → natsFrom(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(head(X)) → head(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(s(X)) → s(active(X))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
QDP
                                                        ↳ QDPOrderProof
                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = 1 + x3   
POL(U11(x1, x2, x3)) = x3   
POL(U21(x1, x2)) = x2   
POL(U31(x1, x2)) = x2   
POL(U41(x1, x2)) = x2   
POL(U51(x1, x2, x3)) = x3   
POL(U61(x1, x2)) = x2   
POL(U71(x1, x2)) = x2   
POL(U81(x1, x2, x3, x4)) = x3 + x4   
POL(U82(x1, x2)) = x1 + x2   
POL(U91(x1, x2)) = x2   
POL(active(x1)) = x1   
POL(afterNth(x1, x2)) = x2   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(fst(x1)) = 1 + x1   
POL(head(x1)) = x1   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = x1 + x2   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = x2   
POL(snd(x1)) = x1   
POL(splitAt(x1, x2)) = x2   
POL(tail(x1)) = x1   
POL(take(x1, x2)) = 1 + x2   
POL(tt) = 0   

The following usable rules [17] were oriented:

active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U91(tt, XS)) → mark(XS)
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U31(tt, N)) → mark(N)
active(U61(tt, Y)) → mark(Y)
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(nil)) → mark(tt)
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(and(tt, X)) → mark(X)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(fst(X)) → fst(active(X))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U21(X1, X2)) → U21(active(X1), X2)
active(snd(X)) → snd(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(natsFrom(X)) → natsFrom(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(head(X)) → head(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(s(X)) → s(active(X))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ QDPOrderProof
QDP
                                                            ↳ QDPOrderProof
                                                            ↳ QDPOrderProof
                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(U31(tt, x0))) → TOP(mark(x0))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation with max and min functions [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = x3   
POL(U11(x1, x2, x3)) = x3   
POL(U21(x1, x2)) = x2   
POL(U31(x1, x2)) = 1 + x2   
POL(U41(x1, x2)) = x2   
POL(U51(x1, x2, x3)) = 1 + x3   
POL(U61(x1, x2)) = x2   
POL(U71(x1, x2)) = x2   
POL(U81(x1, x2, x3, x4)) = x3 + x4   
POL(U82(x1, x2)) = x1 + x2   
POL(U91(x1, x2)) = x2   
POL(active(x1)) = x1   
POL(afterNth(x1, x2)) = x2   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(fst(x1)) = x1   
POL(head(x1)) = 1 + x1   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = x1 + x2   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = 1 + x2   
POL(snd(x1)) = x1   
POL(splitAt(x1, x2)) = x2   
POL(tail(x1)) = x1   
POL(take(x1, x2)) = x2   
POL(tt) = 0   

The following usable rules [17] were oriented:

active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U91(tt, XS)) → mark(XS)
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U31(tt, N)) → mark(N)
active(U61(tt, Y)) → mark(Y)
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(nil)) → mark(tt)
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(and(tt, X)) → mark(X)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(fst(X)) → fst(active(X))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U21(X1, X2)) → U21(active(X1), X2)
active(snd(X)) → snd(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(natsFrom(X)) → natsFrom(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(head(X)) → head(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(s(X)) → s(active(X))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ QDPOrderProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
QDP
                                                                ↳ QDPOrderProof
                                                            ↳ QDPOrderProof
                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = x3   
POL(U11(x1, x2, x3)) = 1 + x3   
POL(U21(x1, x2)) = x2   
POL(U31(x1, x2)) = x2   
POL(U41(x1, x2)) = x2   
POL(U51(x1, x2, x3)) = 1 + x3   
POL(U61(x1, x2)) = x2   
POL(U71(x1, x2)) = x2   
POL(U81(x1, x2, x3, x4)) = x3 + x4   
POL(U82(x1, x2)) = x1 + x2   
POL(U91(x1, x2)) = x2   
POL(active(x1)) = x1   
POL(afterNth(x1, x2)) = 1 + x2   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(fst(x1)) = x1   
POL(head(x1)) = x1   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = x1 + x2   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = 1 + x2   
POL(snd(x1)) = 1 + x1   
POL(splitAt(x1, x2)) = x2   
POL(tail(x1)) = x1   
POL(take(x1, x2)) = x2   
POL(tt) = 0   

The following usable rules [17] were oriented:

active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U91(tt, XS)) → mark(XS)
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U31(tt, N)) → mark(N)
active(U61(tt, Y)) → mark(Y)
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(nil)) → mark(tt)
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(and(tt, X)) → mark(X)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(fst(X)) → fst(active(X))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U21(X1, X2)) → U21(active(X1), X2)
active(snd(X)) → snd(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(natsFrom(X)) → natsFrom(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(head(X)) → head(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(s(X)) → s(active(X))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ QDPOrderProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
QDP
                                                                    ↳ QDPOrderProof
                                                            ↳ QDPOrderProof
                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(U21(tt, x0))) → TOP(mark(x0))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = 0   
POL(U11(x1, x2, x3)) = 0   
POL(U21(x1, x2)) = 1 + x2   
POL(U31(x1, x2)) = 0   
POL(U41(x1, x2)) = 0   
POL(U51(x1, x2, x3)) = 0   
POL(U61(x1, x2)) = x2   
POL(U71(x1, x2)) = 0   
POL(U81(x1, x2, x3, x4)) = 0   
POL(U82(x1, x2)) = 0   
POL(U91(x1, x2)) = 0   
POL(active(x1)) = 0   
POL(afterNth(x1, x2)) = 0   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = 0   
POL(fst(x1)) = 0   
POL(head(x1)) = 0   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = 0   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = 0   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = 0   
POL(snd(x1)) = 0   
POL(splitAt(x1, x2)) = 0   
POL(tail(x1)) = 0   
POL(take(x1, x2)) = 0   
POL(tt) = 0   

The following usable rules [17] were oriented:

take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ QDPOrderProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ QDPOrderProof
QDP
                                                                        ↳ QDPOrderProof
                                                            ↳ QDPOrderProof
                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = 0   
POL(U11(x1, x2, x3)) = 1   
POL(U21(x1, x2)) = 0   
POL(U31(x1, x2)) = 0   
POL(U41(x1, x2)) = 0   
POL(U51(x1, x2, x3)) = 0   
POL(U61(x1, x2)) = x2   
POL(U71(x1, x2)) = 0   
POL(U81(x1, x2, x3, x4)) = 0   
POL(U82(x1, x2)) = 0   
POL(U91(x1, x2)) = 0   
POL(active(x1)) = 0   
POL(afterNth(x1, x2)) = 0   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = 0   
POL(fst(x1)) = 0   
POL(head(x1)) = 0   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = 0   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = 0   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = 0   
POL(snd(x1)) = 0   
POL(splitAt(x1, x2)) = 0   
POL(tail(x1)) = 0   
POL(take(x1, x2)) = 0   
POL(tt) = 0   

The following usable rules [17] were oriented:

take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ QDPOrderProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ QDPOrderProof
                                                                      ↳ QDP
                                                                        ↳ QDPOrderProof
QDP
                                                                            ↳ QDPOrderProof
                                                            ↳ QDPOrderProof
                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(U61(tt, x0))) → TOP(mark(x0))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = 0   
POL(U11(x1, x2, x3)) = 0   
POL(U21(x1, x2)) = 0   
POL(U31(x1, x2)) = 0   
POL(U41(x1, x2)) = 0   
POL(U51(x1, x2, x3)) = 0   
POL(U61(x1, x2)) = 1 + x2   
POL(U71(x1, x2)) = 0   
POL(U81(x1, x2, x3, x4)) = 0   
POL(U82(x1, x2)) = 0   
POL(U91(x1, x2)) = 0   
POL(active(x1)) = 0   
POL(afterNth(x1, x2)) = 0   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = 0   
POL(fst(x1)) = 0   
POL(head(x1)) = 0   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = 0   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = 0   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = 0   
POL(snd(x1)) = 0   
POL(splitAt(x1, x2)) = 0   
POL(tail(x1)) = 0   
POL(take(x1, x2)) = 0   
POL(tt) = 0   

The following usable rules [17] were oriented:

take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ QDPOrderProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ QDPOrderProof
                                                                      ↳ QDP
                                                                        ↳ QDPOrderProof
                                                                          ↳ QDP
                                                                            ↳ QDPOrderProof
QDP
                                                                                ↳ QDPOrderProof
                                                            ↳ QDPOrderProof
                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = 0   
POL(U11(x1, x2, x3)) = 0   
POL(U21(x1, x2)) = 0   
POL(U31(x1, x2)) = 0   
POL(U41(x1, x2)) = 0   
POL(U51(x1, x2, x3)) = 0   
POL(U61(x1, x2)) = 0   
POL(U71(x1, x2)) = 0   
POL(U81(x1, x2, x3, x4)) = 0   
POL(U82(x1, x2)) = 0   
POL(U91(x1, x2)) = 0   
POL(active(x1)) = 0   
POL(afterNth(x1, x2)) = 0   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = 0   
POL(fst(x1)) = 0   
POL(head(x1)) = 0   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = 0   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = 0   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = 0   
POL(snd(x1)) = 0   
POL(splitAt(x1, x2)) = 1   
POL(tail(x1)) = 0   
POL(take(x1, x2)) = 0   
POL(tt) = 0   

The following usable rules [17] were oriented:

take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ QDPOrderProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ QDPOrderProof
                                                                      ↳ QDP
                                                                        ↳ QDPOrderProof
                                                                          ↳ QDP
                                                                            ↳ QDPOrderProof
                                                                              ↳ QDP
                                                                                ↳ QDPOrderProof
QDP
                                                                                    ↳ QDPOrderProof
                                                            ↳ QDPOrderProof
                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = 0   
POL(U11(x1, x2, x3)) = 0   
POL(U21(x1, x2)) = 0   
POL(U31(x1, x2)) = 0   
POL(U41(x1, x2)) = 0   
POL(U51(x1, x2, x3)) = 0   
POL(U61(x1, x2)) = 0   
POL(U71(x1, x2)) = 0   
POL(U81(x1, x2, x3, x4)) = 0   
POL(U82(x1, x2)) = 0   
POL(U91(x1, x2)) = 0   
POL(active(x1)) = 0   
POL(afterNth(x1, x2)) = 0   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = 0   
POL(fst(x1)) = 0   
POL(head(x1)) = 0   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = 1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = 0   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = 0   
POL(snd(x1)) = 0   
POL(splitAt(x1, x2)) = 0   
POL(tail(x1)) = 0   
POL(take(x1, x2)) = 0   
POL(tt) = 0   

The following usable rules [17] were oriented:

take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ QDPOrderProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                              ↳ QDP
                                                                ↳ QDPOrderProof
                                                                  ↳ QDP
                                                                    ↳ QDPOrderProof
                                                                      ↳ QDP
                                                                        ↳ QDPOrderProof
                                                                          ↳ QDP
                                                                            ↳ QDPOrderProof
                                                                              ↳ QDP
                                                                                ↳ QDPOrderProof
                                                                                  ↳ QDP
                                                                                    ↳ QDPOrderProof
QDP
                                                            ↳ QDPOrderProof
                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = x3   
POL(U11(x1, x2, x3)) = 1 + x3   
POL(U21(x1, x2)) = x2   
POL(U31(x1, x2)) = x2   
POL(U41(x1, x2)) = x2   
POL(U51(x1, x2, x3)) = 1 + x3   
POL(U61(x1, x2)) = x2   
POL(U71(x1, x2)) = x2   
POL(U81(x1, x2, x3, x4)) = x3 + x4   
POL(U82(x1, x2)) = x1 + x2   
POL(U91(x1, x2)) = x2   
POL(active(x1)) = x1   
POL(afterNth(x1, x2)) = 1 + x2   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(fst(x1)) = x1   
POL(head(x1)) = x1   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = x1 + x2   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = 1 + x2   
POL(snd(x1)) = x1   
POL(splitAt(x1, x2)) = x2   
POL(tail(x1)) = x1   
POL(take(x1, x2)) = x2   
POL(tt) = 0   

The following usable rules [17] were oriented:

active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U91(tt, XS)) → mark(XS)
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U31(tt, N)) → mark(N)
active(U61(tt, Y)) → mark(Y)
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(nil)) → mark(tt)
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(and(tt, X)) → mark(X)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(fst(X)) → fst(active(X))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U21(X1, X2)) → U21(active(X1), X2)
active(snd(X)) → snd(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(natsFrom(X)) → natsFrom(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(head(X)) → head(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(s(X)) → s(active(X))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                          ↳ QDP
                                            ↳ QDPOrderProof
                                              ↳ QDP
                                                ↳ QDPOrderProof
                                                  ↳ QDP
                                                    ↳ QDPOrderProof
                                                      ↳ QDP
                                                        ↳ QDPOrderProof
                                                          ↳ QDP
                                                            ↳ QDPOrderProof
                                                            ↳ QDPOrderProof
QDP
                                        ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


TOP(ok(U101(tt, x0, x1))) → TOP(mark(fst(splitAt(x0, x1))))
The remaining pairs can at least be oriented weakly.

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(tail(cons(x0, x1)))) → TOP(mark(U91(and(isNatural(x0), isLNat(x1)), x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(head(cons(x0, x1)))) → TOP(mark(U31(and(isNatural(x0), isLNat(x1)), x0)))
TOP(ok(afterNth(x0, x1))) → TOP(mark(U11(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(TOP(x1)) = x1   
POL(U101(x1, x2, x3)) = 1 + x3   
POL(U11(x1, x2, x3)) = x3   
POL(U21(x1, x2)) = x2   
POL(U31(x1, x2)) = x2   
POL(U41(x1, x2)) = x2   
POL(U51(x1, x2, x3)) = x3   
POL(U61(x1, x2)) = x2   
POL(U71(x1, x2)) = x2   
POL(U81(x1, x2, x3, x4)) = x3 + x4   
POL(U82(x1, x2)) = x1 + x2   
POL(U91(x1, x2)) = x2   
POL(active(x1)) = x1   
POL(afterNth(x1, x2)) = x2   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(fst(x1)) = x1   
POL(head(x1)) = x1   
POL(isLNat(x1)) = 0   
POL(isNatural(x1)) = 0   
POL(isPLNat(x1)) = 0   
POL(mark(x1)) = x1   
POL(natsFrom(x1)) = x1   
POL(nil) = 0   
POL(ok(x1)) = x1   
POL(pair(x1, x2)) = x1 + x2   
POL(proper(x1)) = x1   
POL(s(x1)) = 0   
POL(sel(x1, x2)) = x2   
POL(snd(x1)) = x1   
POL(splitAt(x1, x2)) = x2   
POL(tail(x1)) = x1   
POL(take(x1, x2)) = 1 + x2   
POL(tt) = 0   

The following usable rules [17] were oriented:

active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U91(tt, XS)) → mark(XS)
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U31(tt, N)) → mark(N)
active(U61(tt, Y)) → mark(Y)
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(nil)) → mark(tt)
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(and(tt, X)) → mark(X)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
take(mark(X1), X2) → mark(take(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
tail(ok(X)) → ok(tail(X))
tail(mark(X)) → mark(tail(X))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
and(mark(X1), X2) → mark(and(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(mark(X1), X2) → mark(pair(X1, X2))
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(fst(X)) → fst(active(X))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U21(X1, X2)) → U21(active(X1), X2)
active(snd(X)) → snd(active(X))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(natsFrom(X)) → natsFrom(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(head(X)) → head(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(s(X)) → s(active(X))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(fst(X)) → fst(proper(X))
proper(snd(X)) → snd(proper(X))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
isPLNat(ok(X)) → ok(isPLNat(X))
isLNat(ok(X)) → ok(isLNat(X))
proper(tt) → ok(tt)
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
fst(ok(X)) → ok(fst(X))
isNatural(ok(X)) → ok(isNatural(X))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
natsFrom(ok(X)) → ok(natsFrom(X))
natsFrom(mark(X)) → mark(natsFrom(X))
s(ok(X)) → ok(s(X))
s(mark(X)) → mark(s(X))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
head(ok(X)) → ok(head(X))
head(mark(X)) → mark(head(X))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))
proper(0) → ok(0)
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(tail(X)) → tail(proper(X))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ UsableRulesReductionPairsProof
              ↳ QDP
                ↳ Narrowing
                  ↳ QDP
                    ↳ Narrowing
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ QDP
                            ↳ QDPOrderProof
                              ↳ QDP
                                ↳ QDPOrderProof
                                  ↳ QDP
                                    ↳ QDPOrderProof
                                      ↳ QDP
                                        ↳ QDPOrderProof
                                        ↳ QDPOrderProof
QDP

Q DP problem:
The TRS P consists of the following rules:

TOP(ok(U81(tt, x0, x1, x2))) → TOP(mark(U82(splitAt(x0, x2), x1)))
TOP(ok(U21(tt, x0))) → TOP(mark(x0))
TOP(mark(isNatural(x0))) → TOP(isNatural(proper(x0)))
TOP(mark(U51(x0, x1, x2))) → TOP(U51(proper(x0), proper(x1), proper(x2)))
TOP(ok(snd(pair(x0, x1)))) → TOP(mark(U61(and(isLNat(x0), isLNat(x1)), x1)))
TOP(mark(afterNth(x0, x1))) → TOP(afterNth(proper(x0), proper(x1)))
TOP(mark(U91(x0, x1))) → TOP(U91(proper(x0), proper(x1)))
TOP(ok(U11(tt, x0, x1))) → TOP(mark(snd(splitAt(x0, x1))))
TOP(ok(isPLNat(pair(x0, x1)))) → TOP(mark(and(isLNat(x0), isLNat(x1))))
TOP(mark(U101(x0, x1, x2))) → TOP(U101(proper(x0), proper(x1), proper(x2)))
TOP(mark(isPLNat(x0))) → TOP(isPLNat(proper(x0)))
TOP(mark(head(x0))) → TOP(head(proper(x0)))
TOP(ok(isNatural(sel(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(mark(snd(x0))) → TOP(snd(proper(x0)))
TOP(mark(fst(x0))) → TOP(fst(proper(x0)))
TOP(ok(take(x0, x1))) → TOP(take(x0, active(x1)))
TOP(ok(isLNat(take(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(take(x0, x1))) → TOP(take(active(x0), x1))
TOP(ok(isNatural(head(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(tail(cons(x0, x1)))) → TOP(mark(U91(and(isNatural(x0), isLNat(x1)), x1)))
TOP(ok(sel(x0, x1))) → TOP(sel(x0, active(x1)))
TOP(ok(isLNat(snd(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(pair(x0, x1))) → TOP(pair(active(x0), x1))
TOP(ok(snd(x0))) → TOP(snd(active(x0)))
TOP(ok(isLNat(afterNth(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(fst(pair(x0, x1)))) → TOP(mark(U21(and(isLNat(x0), isLNat(x1)), x0)))
TOP(mark(U31(x0, x1))) → TOP(U31(proper(x0), proper(x1)))
TOP(ok(isLNat(cons(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(U61(x0, x1))) → TOP(U61(active(x0), x1))
TOP(ok(U41(x0, x1))) → TOP(U41(active(x0), x1))
TOP(ok(s(x0))) → TOP(s(active(x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(x0, active(x1)))
TOP(ok(U31(x0, x1))) → TOP(U31(active(x0), x1))
TOP(mark(natsFrom(x0))) → TOP(natsFrom(proper(x0)))
TOP(mark(U61(x0, x1))) → TOP(U61(proper(x0), proper(x1)))
TOP(mark(U82(x0, x1))) → TOP(U82(proper(x0), proper(x1)))
TOP(ok(U31(tt, x0))) → TOP(mark(x0))
TOP(ok(pair(x0, x1))) → TOP(pair(x0, active(x1)))
TOP(mark(U81(x0, x1, x2, x3))) → TOP(U81(proper(x0), proper(x1), proper(x2), proper(x3)))
TOP(ok(splitAt(0, x0))) → TOP(mark(U71(isLNat(x0), x0)))
TOP(ok(splitAt(x0, x1))) → TOP(splitAt(active(x0), x1))
TOP(ok(U11(x0, x1, x2))) → TOP(U11(active(x0), x1, x2))
TOP(mark(and(x0, x1))) → TOP(and(proper(x0), proper(x1)))
TOP(ok(U61(tt, x0))) → TOP(mark(x0))
TOP(ok(U91(x0, x1))) → TOP(U91(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(natsFrom(active(x0)))
TOP(ok(fst(x0))) → TOP(fst(active(x0)))
TOP(ok(isLNat(tail(x0)))) → TOP(mark(isLNat(x0)))
TOP(ok(U81(x0, x1, x2, x3))) → TOP(U81(active(x0), x1, x2, x3))
TOP(mark(tail(x0))) → TOP(tail(proper(x0)))
TOP(mark(U11(x0, x1, x2))) → TOP(U11(proper(x0), proper(x1), proper(x2)))
TOP(ok(and(x0, x1))) → TOP(and(active(x0), x1))
TOP(mark(U21(x0, x1))) → TOP(U21(proper(x0), proper(x1)))
TOP(ok(U82(x0, x1))) → TOP(U82(active(x0), x1))
TOP(ok(U71(tt, x0))) → TOP(mark(pair(nil, x0)))
TOP(ok(cons(x0, x1))) → TOP(cons(active(x0), x1))
TOP(ok(head(x0))) → TOP(head(active(x0)))
TOP(ok(U21(x0, x1))) → TOP(U21(active(x0), x1))
TOP(ok(natsFrom(x0))) → TOP(mark(U41(isNatural(x0), x0)))
TOP(ok(U82(pair(x0, x1), x2))) → TOP(mark(pair(cons(x2, x0), x1)))
TOP(mark(pair(x0, x1))) → TOP(pair(proper(x0), proper(x1)))
TOP(ok(splitAt(s(x0), cons(x1, x2)))) → TOP(mark(U81(and(isNatural(x0), and(isNatural(x1), isLNat(x2))), x0, x1, x2)))
TOP(ok(isLNat(fst(x0)))) → TOP(mark(isPLNat(x0)))
TOP(ok(isLNat(natsFrom(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(x0, active(x1)))
TOP(ok(U71(x0, x1))) → TOP(U71(active(x0), x1))
TOP(mark(s(x0))) → TOP(s(proper(x0)))
TOP(ok(isPLNat(splitAt(x0, x1)))) → TOP(mark(and(isNatural(x0), isLNat(x1))))
TOP(ok(afterNth(x0, x1))) → TOP(mark(U11(and(isNatural(x0), isLNat(x1)), x0, x1)))
TOP(ok(head(cons(x0, x1)))) → TOP(mark(U31(and(isNatural(x0), isLNat(x1)), x0)))
TOP(ok(isNatural(s(x0)))) → TOP(mark(isNatural(x0)))
TOP(ok(U41(tt, x0))) → TOP(mark(cons(x0, natsFrom(s(x0)))))
TOP(mark(U41(x0, x1))) → TOP(U41(proper(x0), proper(x1)))
TOP(mark(splitAt(x0, x1))) → TOP(splitAt(proper(x0), proper(x1)))
TOP(ok(U101(x0, x1, x2))) → TOP(U101(active(x0), x1, x2))
TOP(ok(sel(x0, x1))) → TOP(sel(active(x0), x1))
TOP(mark(sel(x0, x1))) → TOP(sel(proper(x0), proper(x1)))
TOP(ok(U51(x0, x1, x2))) → TOP(U51(active(x0), x1, x2))
TOP(mark(isLNat(x0))) → TOP(isLNat(proper(x0)))
TOP(mark(U71(x0, x1))) → TOP(U71(proper(x0), proper(x1)))
TOP(mark(cons(x0, x1))) → TOP(cons(proper(x0), proper(x1)))
TOP(ok(afterNth(x0, x1))) → TOP(afterNth(active(x0), x1))
TOP(ok(and(tt, x0))) → TOP(mark(x0))
TOP(ok(tail(x0))) → TOP(tail(active(x0)))
TOP(mark(take(x0, x1))) → TOP(take(proper(x0), proper(x1)))

The TRS R consists of the following rules:

active(U101(tt, N, XS)) → mark(fst(splitAt(N, XS)))
active(U11(tt, N, XS)) → mark(snd(splitAt(N, XS)))
active(U21(tt, X)) → mark(X)
active(U31(tt, N)) → mark(N)
active(U41(tt, N)) → mark(cons(N, natsFrom(s(N))))
active(U51(tt, N, XS)) → mark(head(afterNth(N, XS)))
active(U61(tt, Y)) → mark(Y)
active(U71(tt, XS)) → mark(pair(nil, XS))
active(U81(tt, N, X, XS)) → mark(U82(splitAt(N, XS), X))
active(U82(pair(YS, ZS), X)) → mark(pair(cons(X, YS), ZS))
active(U91(tt, XS)) → mark(XS)
active(afterNth(N, XS)) → mark(U11(and(isNatural(N), isLNat(XS)), N, XS))
active(and(tt, X)) → mark(X)
active(fst(pair(X, Y))) → mark(U21(and(isLNat(X), isLNat(Y)), X))
active(head(cons(N, XS))) → mark(U31(and(isNatural(N), isLNat(XS)), N))
active(isLNat(nil)) → mark(tt)
active(isLNat(afterNth(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(cons(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isLNat(fst(V1))) → mark(isPLNat(V1))
active(isLNat(natsFrom(V1))) → mark(isNatural(V1))
active(isLNat(snd(V1))) → mark(isPLNat(V1))
active(isLNat(tail(V1))) → mark(isLNat(V1))
active(isLNat(take(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isNatural(0)) → mark(tt)
active(isNatural(head(V1))) → mark(isLNat(V1))
active(isNatural(s(V1))) → mark(isNatural(V1))
active(isNatural(sel(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(isPLNat(pair(V1, V2))) → mark(and(isLNat(V1), isLNat(V2)))
active(isPLNat(splitAt(V1, V2))) → mark(and(isNatural(V1), isLNat(V2)))
active(natsFrom(N)) → mark(U41(isNatural(N), N))
active(sel(N, XS)) → mark(U51(and(isNatural(N), isLNat(XS)), N, XS))
active(snd(pair(X, Y))) → mark(U61(and(isLNat(X), isLNat(Y)), Y))
active(splitAt(0, XS)) → mark(U71(isLNat(XS), XS))
active(splitAt(s(N), cons(X, XS))) → mark(U81(and(isNatural(N), and(isNatural(X), isLNat(XS))), N, X, XS))
active(tail(cons(N, XS))) → mark(U91(and(isNatural(N), isLNat(XS)), XS))
active(take(N, XS)) → mark(U101(and(isNatural(N), isLNat(XS)), N, XS))
active(U101(X1, X2, X3)) → U101(active(X1), X2, X3)
active(fst(X)) → fst(active(X))
active(splitAt(X1, X2)) → splitAt(active(X1), X2)
active(splitAt(X1, X2)) → splitAt(X1, active(X2))
active(U11(X1, X2, X3)) → U11(active(X1), X2, X3)
active(snd(X)) → snd(active(X))
active(U21(X1, X2)) → U21(active(X1), X2)
active(U31(X1, X2)) → U31(active(X1), X2)
active(U41(X1, X2)) → U41(active(X1), X2)
active(cons(X1, X2)) → cons(active(X1), X2)
active(natsFrom(X)) → natsFrom(active(X))
active(s(X)) → s(active(X))
active(U51(X1, X2, X3)) → U51(active(X1), X2, X3)
active(head(X)) → head(active(X))
active(afterNth(X1, X2)) → afterNth(active(X1), X2)
active(afterNth(X1, X2)) → afterNth(X1, active(X2))
active(U61(X1, X2)) → U61(active(X1), X2)
active(U71(X1, X2)) → U71(active(X1), X2)
active(pair(X1, X2)) → pair(active(X1), X2)
active(pair(X1, X2)) → pair(X1, active(X2))
active(U81(X1, X2, X3, X4)) → U81(active(X1), X2, X3, X4)
active(U82(X1, X2)) → U82(active(X1), X2)
active(U91(X1, X2)) → U91(active(X1), X2)
active(and(X1, X2)) → and(active(X1), X2)
active(tail(X)) → tail(active(X))
active(take(X1, X2)) → take(active(X1), X2)
active(take(X1, X2)) → take(X1, active(X2))
active(sel(X1, X2)) → sel(active(X1), X2)
active(sel(X1, X2)) → sel(X1, active(X2))
sel(mark(X1), X2) → mark(sel(X1, X2))
sel(X1, mark(X2)) → mark(sel(X1, X2))
sel(ok(X1), ok(X2)) → ok(sel(X1, X2))
take(mark(X1), X2) → mark(take(X1, X2))
take(X1, mark(X2)) → mark(take(X1, X2))
take(ok(X1), ok(X2)) → ok(take(X1, X2))
tail(mark(X)) → mark(tail(X))
tail(ok(X)) → ok(tail(X))
and(mark(X1), X2) → mark(and(X1, X2))
and(ok(X1), ok(X2)) → ok(and(X1, X2))
U91(mark(X1), X2) → mark(U91(X1, X2))
U91(ok(X1), ok(X2)) → ok(U91(X1, X2))
U82(mark(X1), X2) → mark(U82(X1, X2))
U82(ok(X1), ok(X2)) → ok(U82(X1, X2))
U81(mark(X1), X2, X3, X4) → mark(U81(X1, X2, X3, X4))
U81(ok(X1), ok(X2), ok(X3), ok(X4)) → ok(U81(X1, X2, X3, X4))
pair(mark(X1), X2) → mark(pair(X1, X2))
pair(X1, mark(X2)) → mark(pair(X1, X2))
pair(ok(X1), ok(X2)) → ok(pair(X1, X2))
U71(mark(X1), X2) → mark(U71(X1, X2))
U71(ok(X1), ok(X2)) → ok(U71(X1, X2))
U61(mark(X1), X2) → mark(U61(X1, X2))
U61(ok(X1), ok(X2)) → ok(U61(X1, X2))
afterNth(mark(X1), X2) → mark(afterNth(X1, X2))
afterNth(X1, mark(X2)) → mark(afterNth(X1, X2))
afterNth(ok(X1), ok(X2)) → ok(afterNth(X1, X2))
head(mark(X)) → mark(head(X))
head(ok(X)) → ok(head(X))
U51(mark(X1), X2, X3) → mark(U51(X1, X2, X3))
U51(ok(X1), ok(X2), ok(X3)) → ok(U51(X1, X2, X3))
s(mark(X)) → mark(s(X))
s(ok(X)) → ok(s(X))
natsFrom(mark(X)) → mark(natsFrom(X))
natsFrom(ok(X)) → ok(natsFrom(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
U41(mark(X1), X2) → mark(U41(X1, X2))
U41(ok(X1), ok(X2)) → ok(U41(X1, X2))
U31(mark(X1), X2) → mark(U31(X1, X2))
U31(ok(X1), ok(X2)) → ok(U31(X1, X2))
U21(mark(X1), X2) → mark(U21(X1, X2))
U21(ok(X1), ok(X2)) → ok(U21(X1, X2))
snd(mark(X)) → mark(snd(X))
snd(ok(X)) → ok(snd(X))
U11(mark(X1), X2, X3) → mark(U11(X1, X2, X3))
U11(ok(X1), ok(X2), ok(X3)) → ok(U11(X1, X2, X3))
splitAt(mark(X1), X2) → mark(splitAt(X1, X2))
splitAt(X1, mark(X2)) → mark(splitAt(X1, X2))
splitAt(ok(X1), ok(X2)) → ok(splitAt(X1, X2))
fst(mark(X)) → mark(fst(X))
fst(ok(X)) → ok(fst(X))
U101(mark(X1), X2, X3) → mark(U101(X1, X2, X3))
U101(ok(X1), ok(X2), ok(X3)) → ok(U101(X1, X2, X3))
isNatural(ok(X)) → ok(isNatural(X))
isLNat(ok(X)) → ok(isLNat(X))
isPLNat(ok(X)) → ok(isPLNat(X))
proper(U101(X1, X2, X3)) → U101(proper(X1), proper(X2), proper(X3))
proper(tt) → ok(tt)
proper(fst(X)) → fst(proper(X))
proper(splitAt(X1, X2)) → splitAt(proper(X1), proper(X2))
proper(U11(X1, X2, X3)) → U11(proper(X1), proper(X2), proper(X3))
proper(snd(X)) → snd(proper(X))
proper(U21(X1, X2)) → U21(proper(X1), proper(X2))
proper(U31(X1, X2)) → U31(proper(X1), proper(X2))
proper(U41(X1, X2)) → U41(proper(X1), proper(X2))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(natsFrom(X)) → natsFrom(proper(X))
proper(s(X)) → s(proper(X))
proper(U51(X1, X2, X3)) → U51(proper(X1), proper(X2), proper(X3))
proper(head(X)) → head(proper(X))
proper(afterNth(X1, X2)) → afterNth(proper(X1), proper(X2))
proper(U61(X1, X2)) → U61(proper(X1), proper(X2))
proper(U71(X1, X2)) → U71(proper(X1), proper(X2))
proper(pair(X1, X2)) → pair(proper(X1), proper(X2))
proper(nil) → ok(nil)
proper(U81(X1, X2, X3, X4)) → U81(proper(X1), proper(X2), proper(X3), proper(X4))
proper(U82(X1, X2)) → U82(proper(X1), proper(X2))
proper(U91(X1, X2)) → U91(proper(X1), proper(X2))
proper(and(X1, X2)) → and(proper(X1), proper(X2))
proper(isNatural(X)) → isNatural(proper(X))
proper(isLNat(X)) → isLNat(proper(X))
proper(isPLNat(X)) → isPLNat(proper(X))
proper(tail(X)) → tail(proper(X))
proper(take(X1, X2)) → take(proper(X1), proper(X2))
proper(0) → ok(0)
proper(sel(X1, X2)) → sel(proper(X1), proper(X2))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.